From owner-freebsd-questions Thu Mar 21 03:37:01 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id DAA20491 for questions-outgoing; Thu, 21 Mar 1996 03:37:01 -0800 (PST) Received: from cabri.obs-besancon.fr (cabri.obs-besancon.fr [193.52.184.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id DAA20479 for ; Thu, 21 Mar 1996 03:36:51 -0800 (PST) Received: by cabri.obs-besancon.fr (5.57/Ultrix3.0-C) id AA20495; Thu, 21 Mar 96 12:38:38 +0100 Date: Thu, 21 Mar 96 12:38:38 +0100 Message-Id: <9603211138.AA20495@cabri.obs-besancon.fr> From: Jean-Marc Zucconi To: rdmurphy@acs.bu.edu Cc: questions@freebsd.org In-Reply-To: <199603210131.UAA171296@acs4.bu.edu> (rdmurphy@acs.bu.edu) Subject: Re: Playing audio CD X-Mailer: Emacs Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >>>>> 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 > CPU: 133-MHz Pentium 735\\90 or 815\\100 (Pentium-class CPU) > Origin = "GenuineIntel" Id = 0x52b Stepping=11 > Features=0x1bf > real memory = 16777216 (16384K bytes) > avail memory = 15126528 (14772K bytes) > Probing for devices on PCI bus 0: > chip0 rev 2 on pci0:0 > chip1 rev 2 on pci0:7 > vga0 rev 0 int a irq 10 on pci0:10 > 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 =============================================================================