ChangeSet 1.2223.2.9, 2004/11/24 15:14:34-08:00, [EMAIL PROTECTED]

[PATCH] USB: add ati_remote.c device id

please consider applying the attached patch which adds an identifier for
another variant of the X10 RF remote. This one is very common everywhere
in Europe where Aldi (a supermarket discounter) sells their PCs
(Netherlands, Belgium, northern Germany, France, Spain, ...).
Considering that they ship a few 100,000 PCs once or twice every year
you can imagine there are quite a few of these remotes kicking around.

I've tested with 2.6.10-rc2 and various versions of XMMS and lirc with
the devinput driver. It does play well with lirc-0.7.0-pre8 but not so
nice with 0.7.0. I don't know why, but according to some posts on the
lirc list it seems to be in lirc.

By the way, there seem to be even more variants of this device,
according to:

http://cvs.sourceforge.net/viewcvs.py/lirc/lirc/drivers/lirc_atiusb/lirc_atiusb.c

From: Armijn Hemel <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/input/ati_remote.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


diff -Nru a/drivers/usb/input/ati_remote.c b/drivers/usb/input/ati_remote.c
--- a/drivers/usb/input/ati_remote.c    2004-11-30 15:43:56 -08:00
+++ b/drivers/usb/input/ati_remote.c    2004-11-30 15:43:56 -08:00
@@ -102,6 +102,7 @@
 #define ATI_REMOTE_VENDOR_ID   0x0bc7
 #define ATI_REMOTE_PRODUCT_ID  0x004
 #define LOLA_REMOTE_PRODUCT_ID         0x002
+#define MEDION_REMOTE_PRODUCT_ID 0x006
 
 #define DRIVER_VERSION                 "2.2.1"
 #define DRIVER_AUTHOR           "Torrey Hoffman <[EMAIL PROTECTED]>"
@@ -126,6 +127,7 @@
 static struct usb_device_id ati_remote_table[] = {
        { USB_DEVICE(ATI_REMOTE_VENDOR_ID, ATI_REMOTE_PRODUCT_ID) },
        { USB_DEVICE(ATI_REMOTE_VENDOR_ID, LOLA_REMOTE_PRODUCT_ID) },
+       { USB_DEVICE(ATI_REMOTE_VENDOR_ID, MEDION_REMOTE_PRODUCT_ID) },
        {}      /* Terminating entry */
 };
 
@@ -730,7 +732,8 @@
        /* See if the offered device matches what we can accept */
        if ((udev->descriptor.idVendor != ATI_REMOTE_VENDOR_ID) ||
                ( (udev->descriptor.idProduct != ATI_REMOTE_PRODUCT_ID) &&
-                 (udev->descriptor.idProduct != LOLA_REMOTE_PRODUCT_ID) ))
+                 (udev->descriptor.idProduct != LOLA_REMOTE_PRODUCT_ID) &&
+                 (udev->descriptor.idProduct != MEDION_REMOTE_PRODUCT_ID) ))
                return -ENODEV;
 
        /* Allocate and clear an ati_remote struct */



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to