Hello community,

here is the log from the commit of package isight-firmware-tools for 
openSUSE:Factory checked in at 2012-02-07 14:45:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/isight-firmware-tools (Old)
 and      /work/SRC/openSUSE:Factory/.isight-firmware-tools.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "isight-firmware-tools", Maintainer is ""

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/isight-firmware-tools/isight-firmware-tools.changes  
    2011-09-23 02:03:45.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.isight-firmware-tools.new/isight-firmware-tools.changes
 2012-02-07 14:46:01.000000000 +0100
@@ -1,0 +2,6 @@
+Tue Feb 07 07:35:09 UTC 2012 - [email protected]
+
+- Added support for older iMac isight 
+
+
+-------------------------------------------------------------------

New:
----
  isight-firmware-tools-older_isight-1.6.0.diff

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ isight-firmware-tools.spec ++++++
--- /var/tmp/diff_new_pack.wcEAcP/_old  2012-02-07 14:46:04.000000000 +0100
+++ /var/tmp/diff_new_pack.wcEAcP/_new  2012-02-07 14:46:04.000000000 +0100
@@ -25,6 +25,7 @@
 Url:            http://bersace03.free.fr/ift/
 Group:          Amusements/Toys/Graphics
 Source:         isight-firmware-tools-%{version}.tar.gz
+Patch0:         isight-firmware-tools-older_isight-1.6.0.diff
 BuildRequires:  gcc
 BuildRequires:  intltool
 BuildRequires:  libgcrypt-devel
@@ -38,6 +39,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure

++++++ isight-firmware-tools-older_isight-1.6.0.diff ++++++
diff --git a/src/load.h b/src/load.h
index ac5d354..7dc1b4f 100644
--- a/src/load.h
+++ b/src/load.h
@@ -40,7 +40,8 @@
 #define        _LOAD_H_
 
 #define APPLE_VENDOR_ID                0x05AC
-#define        ISIGHT_PRODUCT_ID       0x8300
+#define        ISIGHT_PRODUCT_ID1      0x8300
+#define        ISIGHT_PRODUCT_ID2      0x8501
 
 #define        ift_debug(args...)      syslog(LOG_DEBUG, args)
 #define        ift_message(args...)    syslog(LOG_INFO, args)
diff --git a/src/udev.c b/src/udev.c
index 004e773..94d43c2 100644
--- a/src/udev.c
+++ b/src/udev.c
@@ -109,11 +109,18 @@ main(int argc, char *argv[])
 
 
        dev = find_usb_product(APPLE_VENDOR_ID,
-                              ISIGHT_PRODUCT_ID);
+                              ISIGHT_PRODUCT_ID1);
+
+        /* If we can't open that device try another one. Older */
+       if (!dev){
+               dev = find_usb_product(APPLE_VENDOR_ID,
+                                      ISIGHT_PRODUCT_ID2);
+        }
 
        if (!dev)
                ift_error(_("No iSight found"));
 
+
        if (load_firmware(dev, firmware) == -1)
                ift_error(_("Failed to upload firmware to 0x%04X:0x%04X"),
                          dev->descriptor.idVendor,
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to