summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2009-05-20 15:06:10 -0400
committerMichael Krufky <mkrufky@kernellabs.com>2009-05-20 15:06:10 -0400
commit54b87636a17edc58610c96dbac2b4f7e984c21ec (patch)
tree0d576687f4b017087072badaf8000c3ef1399141 /linux/drivers/media/video/saa7134
parentff417333f92b9ebf9523167136785d69bb73fab6 (diff)
downloadmediapointer-dvb-s2-54b87636a17edc58610c96dbac2b4f7e984c21ec.tar.gz
mediapointer-dvb-s2-54b87636a17edc58610c96dbac2b4f7e984c21ec.tar.bz2
saa7134: fix quirk in saa7134_i2c_xfer for the saa7131 bridge
From: Michael Krufky <mkrufky@kernellabs.com> The i2c quirk in the saa7134_i2c_xfer function does a bogus write to i2c address 0xfd, to work around a bug in the silicon that affects read transactions. Unfortunately, this hack is not working properly, since the bogus write is to 0xfd, an invalid i2c address. Fix this quirk by using an actual valid i2c address, 0xfe, which is still unlikely to be used as an i2c address for any actual i2c client. This is required in order to properly communicate with a TDA10048 DVB-T demod located at i2c address 0x10 on the primary i2c bus. Priority: normal Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Diffstat (limited to 'linux/drivers/media/video/saa7134')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-i2c.c b/linux/drivers/media/video/saa7134/saa7134-i2c.c
index 3eb60aabe..78f9cac3d 100644
--- a/linux/drivers/media/video/saa7134/saa7134-i2c.c
+++ b/linux/drivers/media/video/saa7134/saa7134-i2c.c
@@ -264,7 +264,7 @@ static int saa7134_i2c_xfer(struct i2c_adapter *i2c_adap,
/* workaround for a saa7134 i2c bug
* needed to talk to the mt352 demux
* thanks to pinnacle for the hint */
- int quirk = 0xfd;
+ int quirk = 0xfe;
d1printk(" [%02x quirk]",quirk);
i2c_send_byte(dev,START,quirk);
i2c_recv_byte(dev);