From owner-freebsd-hardware Thu May 23 12:33:23 1996 Return-Path: owner-hardware Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA11597 for hardware-outgoing; Thu, 23 May 1996 12:33:23 -0700 (PDT) Received: from dunquin (PPP-81-3.BU.EDU [128.197.8.23]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA11588 for ; Thu, 23 May 1996 12:33:16 -0700 (PDT) Received: (from rdmurphy@localhost) by dunquin (8.6.12/8.6.12) id JAA00279; Thu, 23 May 1996 09:29:07 -0400 Date: Thu, 23 May 1996 09:29:07 -0400 Message-Id: <199605231329.JAA00279@dunquin> From: "Russell D. Murphy" To: mcortes@cs.sunysb.edu Cc: hardware@FreeBSD.org Subject: Sony CDU-76S CD-ROM patch Sender: owner-hardware@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk 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 |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 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 | =============================================================================