]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (7465): Fix eeprom parsing and errors on the HVR1800 products
authorSteven Toth <stoth@hauppauge.com>
Sat, 29 Mar 2008 20:36:09 +0000 (17:36 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 1 Apr 2008 22:35:45 +0000 (19:35 -0300)
On some models, the valid Hauppauge eeprom data begins at a different offset.
This patch avoid unfriendly 'corrupt' eeprom errors during driver load.

Signed-off-by: Steven Toth <stoth@hauppauge.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx23885/cx23885-cards.c

index 2d414dad5c31ac2b9c184459d6d04a6b42746dce..761ad4fcece3f6d7e0bed7927e023a26f8440594 100644 (file)
@@ -347,10 +347,13 @@ void cx23885_card_setup(struct cx23885_dev *dev)
        case CX23885_BOARD_HAUPPAUGE_HVR1250:
        case CX23885_BOARD_HAUPPAUGE_HVR1500:
        case CX23885_BOARD_HAUPPAUGE_HVR1500Q:
+               if (dev->i2c_bus[0].i2c_rc == 0)
+                       hauppauge_eeprom(dev, eeprom+0x80);
+               break;
        case CX23885_BOARD_HAUPPAUGE_HVR1800:
        case CX23885_BOARD_HAUPPAUGE_HVR1800lp:
                if (dev->i2c_bus[0].i2c_rc == 0)
-                       hauppauge_eeprom(dev, eeprom+0x80);
+                       hauppauge_eeprom(dev, eeprom+0xc0);
                break;
        }