[EMAIL PROTECTED] wrote:
> I' m writin' this e-letter because I' d love to know how to get a working
> device file for my USB modem. The only think I want to know is where in
> the ACM source code 2.2 or 2.4 I have to add vendorID and productID of my
> modem, even if it is not officially supported. I think it MUST work.
I think it has no chance of working (if it doesn't claim to be ACM compliant,
it almost certainly isn't). But what you do is up to you.
Find /usr/src/linux/drivers/usb/acm.c, and find the table that looks like:
/*
 * USB driver structure.
 */

static struct usb_device_id acm_ids[] = {
        { USB_DEVICE_INFO(2, 0, 0) },
        { }
};

Modify that to read:
/*
 * USB driver structure.
 */

static struct usb_device_id acm_ids[] = {
        { USB_DEVICE_INFO(2, 0, 0) },
        { USB_DEVICE(0xVVVV, 0xPPPP) }
        { }
};

Where 0xVVVV is replaced with your vendor ID, and 0xPPPP is replaced by your product 
ID.

And since I think it is bound to fail, don't ask me to fix it when it doesn't work :)

Brad

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

Reply via email to