[Lcdproc] Patch: ShuttleVSD fix and support for newer models
Miska Sulander
sulander@cc.jyu.fi
Sun Nov 11 08:57:02 2007
--Boundary-00=_3OsNHkz/7G8eq5g
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,
I have attached a patch that fixes the shuttleVFD driver and adds support for
newer Shuttle models (sg33g5m). Driver had Shuttle USB vendor ID incorrectly
defined as decimal not hexadecimal.
Regards,
Miska
--Boundary-00=_3OsNHkz/7G8eq5g
Content-Type: text/x-diff;
charset="us-ascii";
name="patch-shuttleVFD.h.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="patch-shuttleVFD.h.diff"
--- lcdproc-CVS-current-20071110/server/drivers/shuttleVFD.h.orig 2007-08-15 19:11:12.000000000 +0300
+++ lcdproc-CVS-current-20071110/server/drivers/shuttleVFD.h 2007-11-11 10:49:03.768770089 +0200
@@ -56,8 +56,10 @@
#define SHUTTLE_VFD_CELLHEIGHT 8
// VFD USB properties
-#define SHUTTLE_VFD_VENDOR_ID 0x1308
-#define SHUTTLE_VFD_PRODUCT_ID 0x0003
+#define SHUTTLE_VFD_VENDOR_ID 0x051c
+#define SHUTTLE_VFD_PRODUCT_ID1 0x0003
+// IR-receiver included in this model
+#define SHUTTLE_VFD_PRODUCT_ID2 0x0005
#define SHUTTLE_VFD_INTERFACE_NUM 1
// VFD USB control message
--Boundary-00=_3OsNHkz/7G8eq5g
Content-Type: text/x-diff;
charset="us-ascii";
name="patch-shuttleVFD.c.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="patch-shuttleVFD.c.diff"
--- lcdproc-CVS-current-20071110/server/drivers/shuttleVFD.c.orig 2007-08-15 19:11:12.000000000 +0300
+++ lcdproc-CVS-current-20071110/server/drivers/shuttleVFD.c 2007-11-11 10:07:43.295415967 +0200
@@ -129,7 +129,7 @@
struct usb_device *dev;
for (dev = bus->devices; dev != NULL; dev = dev->next) {
if (dev->descriptor.idVendor == SHUTTLE_VFD_VENDOR_ID &&
- dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID) {
+ (dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID1 || dev->descriptor.idProduct == SHUTTLE_VFD_PRODUCT_ID2)) {
p->dev = usb_open(dev);
}
}
--Boundary-00=_3OsNHkz/7G8eq5g--