Date: Thu, 21 Mar 96 12:38:38 +0100 From: Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr> To: rdmurphy@acs.bu.edu Cc: questions@freebsd.org Subject: Re: Playing audio CD Message-ID: <9603211138.AA20495@cabri.obs-besancon.fr> In-Reply-To: <199603210131.UAA171296@acs4.bu.edu> (rdmurphy@acs.bu.edu)
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> 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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8> > real memory = 16777216 (16384K bytes) > avail memory = 15126528 (14772K bytes) > Probing for devices on PCI bus 0: > chip0 <Intel 82437 (Triton)> rev 2 on pci0:0 > chip1 <Intel 82371 (Triton)> rev 2 on pci0:7 > vga0 <VGA-compatible display device> rev 0 int a irq 10 on pci0:10 > 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?9603211138.AA20495>