-Fix for NT1005 bridge detection.
-Use strcmp() instead of == for strings comparison
Signed-off-by: Dwaine P. Garden <DwaineGarden@xxxxxxxxxx>
-Use strcmp() instead of == for strings comparison
Signed-off-by: Dwaine P. Garden <DwaineGarden@xxxxxxxxxx>
diff -U 3 -H -d -r -N -- a/linux/drivers/media/video/usbvision/usbvision-video.c b/linux/drivers/media/video/usbvision/usbvision-video.c --- a/linux/drivers/media/video/usbvision/usbvision-video.c 2007-04-12 20:24:34.000000000 -0400 +++ b/linux/drivers/media/video/usbvision/usbvision-video.c 2007-04-13 00:27:56.000000000 -0400 @@ -2036,11 +2036,13 @@ return -ENOMEM; } #endif - if (dev->descriptor.bNumConfigurations > 1) { - usbvision->bridgeType = BRIDGE_NT1004; + + if ((!strcmp(usbvision_device_data[model].ModelString, "Dazzle Fusion Model DVC-90 Rev 1 (SECAM)")) && + (dev->descriptor.bNumConfigurations > 1)){ + usbvision->bridgeType = BRIDGE_NT1005; } - else if (usbvision_device_data[model].ModelString == "Dazzle Fusion Model DVC-90 Rev 1 (SECAM)") { - usbvision->bridgeType = BRIDGE_NT1005; + else if (dev->descriptor.bNumConfigurations > 1) { + usbvision->bridgeType = BRIDGE_NT1004; } else { usbvision->bridgeType = BRIDGE_NT1003;
_______________________________________________ linux-dvb mailing list linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb