Subject: Status of CDIOCPLAYTRACKS, CDIOCSETVOL problems outlined in: kern/7299
To: None <>
From: Brian A. Seklecki <>
List: current-users
Date: 09/06/2002 07:57:29
I dug through the mailing lists.  Reports of this problem are recorded as far
back as `94.  In April of `99, Julian Coleman opended the original PR
(kern/7299) with a suggested fix:

Mailing list post:


...the PR really hasn't been looked at.

On 05/17/2002:

Jared D. McNeill reports kern/16883:

System: NetBSD 1.5ZC NetBSD 1.5ZC (SUN) #0: Fri May 17 23:07:20 ADT 2002 i386
Architecture: i386

No drive info, but recieves:

	cd0(ahc0:0:1:0):  Check condition on CDB: 0x15 10 00 00 1c 00
	    SENSE KEY:  Illegal Request
	     ASC/ASCQ:  Invalid Field In Parameter List


I'm running a recent -current on sparc:

NetBSD hurt 1.6B NetBSD 1.6B (GENERIC) #0: Sat Jun 29 (clock was off)
22:59:21 EST 2002

Drive info:

cd0 at scsibus1 target 5 lun 0: <TOSHIBA, XM-4101TASUNSLCD, 3424> SCSI2 5/cdrom removable
cd0: sync (248.0ns offset 12), 8-bit (4.032MB/s) transfers

On "cdplay> volume 255 255" or on "cdplay> play"

I get:

Aug 12 20:30:13 hurt /netbsd: cd0(isp0:0:5:0):  Check Condition on CDB: 0x15 10 00 00 1c 00
Aug 12 20:30:13 hurt /netbsd:     SENSE KEY:  Illegal Request
Aug 12 20:30:13 hurt /netbsd:      ASC/ASCQ:  Invalid Field In Parameter List
Aug 12 20:30:13 hurt /netbsd:          SKSV:  Error in Parameters, Offset 0, bit 4

I managed to get my drive working with pkgsrc/audio/xmcd (and it's horribly insufficient
drive spec database) using scsi -> other.  It prompts you the following questions:

  - The Play_Audio_MSF SCSI command? [y] n
  - The Play_Audio(12) SCSI command? [n] y
  - The Play_Audio(10) SCSI command? [y] y
  - The Play_Audio_Track/Index command? [y] y
  - Caddy load via the Start_Stop_Unit SCSI command? [n]
  - Caddy eject via the Start_Stop_Unit SCSI command? [y]
  - Disable block descriptor in the Mode_Sense SCSI command? [y]
  - Audio volume control via the Mode_Select SCSI command? [y]
  - Independent SCSI Mode_Select volume control for each channel? [y]
  - Audio channel routing via SCSI Mode_Select? [y]
  - The Pause/Resume SCSI command? [y]
  - The Prevent/Allow_Medium_Removal SCSI command? [y]
  - Data Format 1 of the Read_Subchannel SCSI command?  [n]

...I'm curious how these questions relate to the builtin syscalls cdplay(8)
uses?  I manually patched my scsi_cd.c and recompiled but still no progress.
I guess work is needed to detect how many audio chanels a CD-ROM has?

later -           | _BonaFide[] = { coder, author, | /~\ The ASCII Ribbon
Brian A. Seklecki | problem solver, scholar, BOFH, | \ / Campaign Against
                  | vegetarian, runner, NetBSD     |  X  Exchange, Outlook
                  | advocate, spiritual machine }; | / \ & HTML Email

PGP: 0111 4618 0111 4618 4AB2 24EB C853 6611 75C4 A91E A7A7 4973