openbsd-ports/audio/tosha/patches/patch-toscsi_c
naddy 7a443d201f - /dev/dsp -> /dev/sound
- /etc -> SYSCONFDIR
- add proper INSTALL/DEINSTALL scripts
- rename and regen patches
- misc clean-ups
2001-03-14 15:04:11 +00:00

21 lines
717 B
Plaintext

$OpenBSD: patch-toscsi_c,v 1.1 2001/03/14 15:04:12 naddy Exp $
--- toscsi.c.orig Sat Jan 2 00:57:46 1999
+++ toscsi.c Wed Mar 14 15:23:38 2001
@@ -182,6 +182,16 @@ toscsi_readsectors (toscsi_handle *hdl,
(char *) buf, SCCMD_READ,
"v 0 0 v:i3 0 0 0 v 0 0",
readcmd, sec, secread);
+ else if (readcmd == 0xbe)
+ /*
+ * Actually the ATAPI read command, but as OpenBSD
+ * now can attach ATAPI CDs through the SCSI layer,
+ * this is good to support.
+ */
+ scsireq_build (hdl->sreq, SECTORSIZE * secread,
+ (char *) buf, SCCMD_READ,
+ "v 4 0 v:i3 0 0 v 0xf8",
+ readcmd, sec, secread);
else
scsireq_build (hdl->sreq, SECTORSIZE * secread,
(char *) buf, SCCMD_READ,