Hi all,
On Tue, 17 Apr 2001 15:04:43 +0100 (BST), Jasper Wallace wrote:
>
> You need to add these product and vendor id's to the rio500
> driver for it to recognise the 600
Thanks Jasper for pointing me in the right direction.
For the record, the change is to drivers/usb/rio500.c:
diff rio500.c rio500.c.orig
359c359
< if (dev->descriptor.idVendor != 0x45a) { /* RIO 600 */
---
> if (dev->descriptor.idVendor != 0x841) {
363c363
< if (dev->descriptor.idProduct != 0x5001 /* RIO 600 */ ) {
---
> if (dev->descriptor.idProduct != 0x1 /* RIO 500 */ ) {
Unfortunately, it still isn't working for me :-(
Salient facts:
* Now the "rio500" driver does get loaded:
rio500.c: USB Rio found at address 2
usb.c: rio500 driver claimed interface c7f93f00
* /proc/bus/usb/devices also gives some confidence:
[...]
P: Vendor=045a ProdID=5001 Rev= 1.00
S: Manufacturer=Diamond Multimedia
* ---> HOWEVER, whenever I (or any program like rio600.c)
tries to access the character-special file, it gets an error.
I added some fprintf's to rio600.c so you can see what I mean:
# ./rio600 -l -d
init_connection: fd for device '/dev/usb/rio' is 3
send_command: about to ioctl() on fd = 3
cmd: len: 0x000c rt: 0x00000000 rq: 0x0000007b va: 0x00003adc id:
0x000065c4 0000 : 00 00 00 00 00 00 00 00 00 00 00 00 :
............
send_command: about to ioctl() on fd = 18
ioctl: Bad file descriptor
Here's the relevant code (from rio600.c):
fprintf(stderr,"send_command: about to ioctl() on fd = %i\n",fd);
if ( ioctl (fd, RIO_RECV_COMMAND, &cmd) < 0) {
fprintf(stderr, "ioctl: %s\n", strerror(errno));
ret = errno;
}
So.. the ioctl() that eventually fails happens in send_command().
When this runs (I've compiled DEBUG mode into the USB driiver)
I get the following in /var/log/messages:
kernel: rio500.c: Rio opened.
kernel: rio500.c: Rio closed.
Any ideas... any at all?
-Denis
_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-users