Message: 5
From: "Bob Tennent" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Sat, 19 Jun 2004 19:08:34 -0400
Subject: [Linux-usb-users] USB DVD

Hi. The Asus S5N laptop system comes with an external CD-RW/DVD-ROM drive which is accessed by the laptop via a USB 2 connector. I can play *unencrypted* DVDs (and presumably CDs) fine but, as of kernel 2.4.25, I can't play encrypted DVDs. Here's what the ogle people say about it:

Linux has its strange special ioctl interface
to the CSS (the DVD encryption stuff) that is implemented for ide-cdrom and
ide-scsi. It's really just ATAPI/SCSI commands though.
However the USB stack (and other communication stacks) do not implement this.
So in short Linux does not support USB DVD drives.

Yes it does. I have 2 of them and they work fine. There is a problem with the linux-usb drivers determining that you have a DVD rom connected and they will prevent the CSS IOCTL from working if they don't believe the drive is actually a DVD.
My solution was to comment out the 2 checks in the linux cdrom driver.


Checkout these 2 excerpts from drivers/cdrom/cdrom.c. Comment out the bits I have here and you will be cooking with gas.


case DVD_READ_STRUCT: { dvd_struct *s; int size = sizeof(dvd_struct); // if (!CDROM_CAN(CDC_DVD)) // return -ENOSYS; if ((s = (dvd_struct *) kmalloc(size, GFP_KERNEL)) == NULL) return -ENOMEM; cdinfo(CD_DO_IOCTL, "entering DVD_READ_STRUCT\n");



        case DVD_AUTH: {
                dvd_authinfo ai;
//              if (!CDROM_CAN(CDC_DVD))
//                      return -ENOSYS;
                cdinfo(CD_DO_IOCTL, "entering DVD_AUTH\n");
                IOCTL_IN(arg, dvd_authinfo, ai);
                if ((ret = dvd_do_auth (cdi, &ai)))

Regards,
Brad


------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to