LCDproc development and user support list

Text archives Help


[Lcdproc] Patch: ShuttleVSD fix and support for newer models


Chronological Thread 
  • From: sulander AT cc.jyu.fi (Miska Sulander)
  • Subject: [Lcdproc] Patch: ShuttleVSD fix and support for newer models
  • Date: Sun Nov 11 08:57:02 2007

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
--- 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
--- 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);
       }
     }



Archive powered by MHonArc 2.6.18.

Top of page