CDROMPLAYTRKIND translation in sr_ioctl.c for idescsi
Subsystems (2)
PATCH 1/1 CDROMPLAYTRKIND translation in sr_ioctl.c for idescsi
Summary:
Many audio-cdrom-playing programs don't work correctly with ATAPI CDROM drives under ide-scsi translation, because ATAPI doesn't support the PLAYAUDIO_TI command. The ide-cd driver handles this by transforming CDROMPLAYTRKIND ioctls into something that the ATAPI drive will understand, but this mechanism is bypassed when using ide-scsi translation.
This patch creates a new kernel option, CONFIG_SCSI_IDESCSI_WORKAROUND, that is available whenever ide-scsi translation is enabled. Enabling this new option includes a tranlation mechanism into the SCSI CDROM (sr) driver similar to the mechanism in the ide-cd driver.
Hopefully this will make life much easier for those of us who use ide-scsi for CDROM drives. It is essentially the same thing as the patch I posted for 2.2.12 on 19 Oct 1999, but updated for 2.4.0-test9. This probably isn't the most elegant solution, but maybe it'll help some people out until Jens figures out something better.
Daniel Risacher
Documentation/Configure.help renamed from Documentation/Configure.help.old +14 -0
@@ -588,6 +588,20 @@ If unsure, say N. +IDE-SCSI workaround +CONFIG_SCSI_IDESCSI_WORKAROUND + + This will enable the SCSI CDROM driver to work around a limitation of + the ATAPI specification. The ATAPI spec does not support the + play-track-index command, which means that many programs that play + audio CD's will not work correctly when using SCSI emulation. + + With this option, the SCSI CDROM driver translates play-track-index + commands into play-minute-second-frame commands, in a way similar to + the IDE CDROM driver. + + If unsure, say Y. + CMD640 chipset bugfix/support CONFIG_BLK_DEV_CMD640 The CMD-Technologies CMD640 IDE chip is used on many common 486 and
drivers/ide/Config.in renamed from drivers/ide/Config.in.old +3 -0
@@ -31,6 +31,9 @@ dep_tristate ' Include IDE/ATAPI TAPE support' CONFIG_BLK_DEV_IDETAPE $CONFIG_BLK_DEV_IDE dep_tristate ' Include IDE/ATAPI FLOPPY support' CONFIG_BLK_DEV_IDEFLOPPY $CONFIG_BLK_DEV_IDE dep_tristate ' SCSI emulation support' CONFIG_BLK_DEV_IDESCSI $CONFIG_BLK_DEV_IDE $CONFIG_SCSI + if [ "$CONFIG_BLK_DEV_IDESCSI" != "n" ]; then + bool ' Enable IDE-SCSI workaround in SCSI CDROM driver' CONFIG_SCSI_IDESCSI_WORKAROUND + fi comment 'IDE chipset support/bugfixes' if [ "$CONFIG_BLK_DEV_IDE" != "n" ]; then
drivers/scsi/sr_ioctl.c renamed from drivers/scsi/sr_ioctl.c.old +52 -1
74 lines not on this page · raw message
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/
Quoted 8 lines · Daniel R Risacher
Summary:
Many audio-cdrom-playing programs don't work correctly with ATAPI CDROM drives under ide-scsi translation, because ATAPI doesn't support the
PLAYAUDIO_TIcommand. The ide-cd driver handles this by transforming CDROMPLAYTRKIND ioctls into something that the ATAPI drive will understand, but this mechanism is bypassed when using ide-scsi translation.
Yup
Quoted 11 lines
This patch creates a new kernel option,
CONFIG_SCSI_IDESCSI_WORKAROUND, that is available whenever ide-scsi translation is enabled. Enabling this new option includes a tranlation mechanism into the SCSI CDROM (sr) driver similar to the mechanism in the ide-cd driver.Hopefully this will make life much easier for those of us who use ide-scsi for CDROM drives. It is essentially the same thing as the patch I posted for 2.2.12 on 19 Oct 1999, but updated for 2.4.0-test9. This probably isn't the most elegant solution, but maybe it'll help some people out until Jens figures out something better.
I would take this patch, if you made it a fall back path when PLAYAUDIO_TI fails with 05/20/00 sense. That makes a lot more sense to me (pun intended) than a config option. What do you think, will you do that?
For 2.5 the CD-ROM setup will be feature based. This is all supported by newer drives, but it should be possible to make pseudo feature profiles for older drives. This has the advantage that we always 'know' what is supported and what is not -- no more trial and error.
Signature · 6 lines
* Jens Axboe <[email protected]> * SuSE Labs - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/