summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Toth <stoth@hauppauge.com>2008-03-29 13:36:09 -0400
committerSteven Toth <stoth@hauppauge.com>2008-03-29 13:36:09 -0400
commit0a04727c5e8581de5813fd4cb447ca00a4a636e6 (patch)
treeb6eb2d252612e2793a05c19b3318626220d35267
parent85cbd18fdb6ed5414384055f3e88f3de973dc3ae (diff)
downloadmediapointer-dvb-s2-0a04727c5e8581de5813fd4cb447ca00a4a636e6.tar.gz
mediapointer-dvb-s2-0a04727c5e8581de5813fd4cb447ca00a4a636e6.tar.bz2
Fix eeprom parsing and errors on the HVR1800 products.
From: Steven Toth <stoth@hauppauge.com> 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>
-rw-r--r--linux/drivers/media/video/cx23885/cx23885-cards.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/video/cx23885/cx23885-cards.c b/linux/drivers/media/video/cx23885/cx23885-cards.c
index 8df5e27ed..5b1716427 100644
--- a/linux/drivers/media/video/cx23885/cx23885-cards.c
+++ b/linux/drivers/media/video/cx23885/cx23885-cards.c
@@ -348,10 +348,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;
}