ide-cd underestimates NEC260 CDROM drive.

David Woodhouse (David.Woodhouse@mvhi.com)
Mon, 25 Oct 1999 12:02:30 +0100


The latest version of ide-cd.c has a special case for the NEC 260 drive and
doesn't attempt to query its capabilities. Unfortunately, it doesn't actually
set the known capabilities of the driver either.

To reenable the support for audio and eject on this drive, I need the following
patch (against 2.2.13):

Index: ide-cd.c
===================================================================
RCS file: /cvs/linux/drivers/block/ide-cd.c,v
retrieving revision 1.4
diff -u -w -r1.4 ide-cd.c
--- ide-cd.c 1999/09/13 11:34:31 1.4
+++ ide-cd.c 1999/10/25 11:01:03
@@ -2890,8 +2890,11 @@
struct atapi_capabilities_page cap;
} buf;

- if (CDROM_CONFIG_FLAGS (drive)->nec260)
+ if (CDROM_CONFIG_FLAGS (drive)->nec260) {
+ CDROM_CONFIG_FLAGS (drive)->no_eject = 0;
+ CDROM_CONFIG_FLAGS (drive)->audio_play = 1;
return nslots;
+ }

do { /* we seem to get stat=0x01,err=0x00 the first time (??) */
if (attempts-- <= 0)

---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 7976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.

-
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/