2.2.16pre{5,7}: loss of SCSI CDROM volume control

From: Matthew Clarke (Matthew_Clarke@mindlink.bc.ca)
Date: Mon Jun 05 2000 - 21:04:58 EST


Hi.

With various 2.2 kernels, up to and including 2.2.15, I have been able
to control the volume on my SCSI CD-ROM drive via the CDROMVOLREAD and
CDROMVOLCTRL ioctls, as used in programs such as gcd and cdctl.

With 2.2.16pre5 and 2.2.16pre7, this no longer works.

I am trying to trace this through to find the point of failure, but it's
taking a while (first time wandering around the SCSI drivers.) Since
2.2.16 seems to be fast-tracked, I thought I'd let you know of the issue,
in case no one else has encountered or reported it.

CD-ROM: Sony CDU-625
SCSI host: Buslogic FlashPoint LW (BT-950)
Machine: Intel Pentium 166, noname 430FX board, AMI WinBIOS
Kernel: vanilla 2.2.16pre5 and 2.2.16pre7 (haven't got pre8 yet)

Tracing the first part of this was easy enough:
        - reconfigured for universal CD-ROM and SCSI CD-ROM as modules
        - added some printks into cdrom.c, in the CDROMVOLREAD case of
          function mmc_ioctl

Result is a non-zero return from the first cdrom_mode_sense, which causes
an immediate return without doing anything further. Original code lines
(reformatted for this e-mail):

        if ((ret = cdrom_mode_sense(cdi, &cgc, GPMODE_AUDIO_CTL_PAGE, 0)))
                return ret;

New:

        if ((ret = cdrom_mode_sense(cdi, &cgc, GPMODE_AUDIO_CTL_PAGE, 0)))
        {
        printk( "mjcc: cdrom_mode_sense returning %d (0x%x)\n", ret, ret );
        return ret;
        }

Printk shows up as:

        mjcc: cdrom_mode_sense returning 671088642 (0x28000002)

If anyone wants to look at this before I stumble my way through
sr_packet() and SCSI-land, feel free to ask for any more information you
need, or to tell me where to go. :)

Matt.

-- 
Any research done on how to efficiently use computers has been long lost
in the mad rush to upgrade systems to do things that aren't needed by
people who don't understand what they are really supposed to do with
them.				-- Graham Reed, in a.s.r.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:24 EST