-----BEGIN PGP SIGNED MESSAGE-----

On Wed, 18 Apr 2001, Denis Goddard wrote:

> 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

I don't understand why the fd's changed from 3 to 18 here!

>     ioctl: Bad file descriptor

which is fair enough if the fd's changed!

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

Hmmm, not really.

I've been able to contact the guy with the patches for linux, and he's
rebuilding his website now, so hopefully i'll soon be able to point you
to it...

- -- 
     "The aurochs was the great, black bull that was painted on cave
walls  alongside bison and mammoths  by tacky prehistoric minimalist
artists  who  had no  sense whatsoever of  modeling or perspective."
[see: http://www.aristotle.net/~swarmack/aurochs.html]  [0x2ECA0975]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (NetBSD)
Comment: For info see http://www.gnupg.org

iQEVAwUBOt3FngCB+Qwuygl1AQHpNQf/fofAXPVdjdqB+gxdx0GVWA4elvOjrCH7
djPAUZfCKtpmfBx8/5NBVj17gX6yGPF0eSWn0eKvgL5FgI01zWZ8fpgdoo5KS4Th
zA9H2a/I/rOPUNXhbw8bcWumdtSpH1V0PsZRLO4kvbWtC1GZp28NPrNMfWWU+fHS
dutbdxhM7aTFunb8xXuN99uen6JxOTLFPfoE4jLxWpokjuPNQFXZg/ua69uRlFbC
03e1cdoA6TeBm/OsKsYEXvMiEq4wYa/byG8mfpsEndVs8oPZLuhU5FeM+OUGRtPi
qddni+Y87rA6NGkm6FqjvfX3WDXw2FkYcvuOqwZjsKsmfZ/kqGhpBA==
=fE4G
-----END PGP SIGNATURE-----


_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to