Date: Thu, 23 May 1996 09:29:07 -0400 From: "Russell D. Murphy" <rdmurphy@acs.bu.edu> To: mcortes@cs.sunysb.edu Cc: hardware@FreeBSD.org Subject: Sony CDU-76S CD-ROM patch Message-ID: <199605231329.JAA00279@dunquin>
next in thread | raw e-mail | index | archive | help
Here's the patch that I received to enable audio CD-ROM playing on a Sony CDU-76 CD-ROM. My recollection is that I had to apply the patch by hand. Russ Murphy |-------------------------- |Date: Thu, 21 Mar 96 12:38:38 +0100 |From: Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr> |To: rdmurphy@acs.bu.edu | |>>>>> rdmurphy writes: | | > I have a question about playing an audio CD (through headphones) | > on my CD-ROM drive. I've tried using a couple different programs | > without success. Using "cdplay", I can access the drive, in the | > sense that it lists the tracks, but it won't play the CD. When I | > attempt to play it, the following message is generated: | | > cd0(ncr0:3:0): ILLEGAL REQUEST asc:26,0 Invalid field in parameter list | | > Any idea what's going on here? | | > My system: | | > FreeBSD 2.1-STABLE #0: Mon Mar 11 01:03:52 1996 | > root@dunquin:/usr/src/sys/compile/DUNQUIN < stuff deleted > | > ncr0 <ncr 53c810 scsi> rev 2 int a irq 11 on pci0:12 | > ncr0 waiting for scsi devices to settle | > (ncr0:0:0): "FUJITSU M1606S-512 6234" type 0 fixed SCSI 2 | > sd0(ncr0:0:0): Direct-Access | > sd0(ncr0:0:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8. | > 1041MB (2131992 512 byte sectors) | > (ncr0:3:0): "SONY CD-ROM CDU-76S 1.1c" type 5 removable SCSI 2 | |Go to /sys/scsi, apply the following patch to cd.c and recompile |*************** |*** 1093,1098 **** |--- 1093,1104 ---- | scsi_cmd.byte2 |= SMS_PF; | scsi_cmd.length = sizeof(*data) & 0xff; | data->header.data_length = 0; |+ /* |+ * SONY drives do not allow a mode select with a medium_type |+ * value that has just been returned by a mode sense; use a |+ * medium_type of 0 (Default) instead. |+ */ |+ data->header.medium_type = 0; | return (scsi_scsi_cmd(SCSI_LINK(&cd_switch, unit), | (struct scsi_generic *) &scsi_cmd, | sizeof(scsi_cmd), | |Jean-Marc | _____________________________________________________________________________ | Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex | PGP Key: finger jmz@cabri.obs-besancon.fr | =============================================================================
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605231329.JAA00279>