diff options
author | Michael Krufky <mkrufky@kernellabs.com> | 2009-05-20 15:06:10 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 17:21:14 -0400 |
commit | b9dcdb6fb870ce83578465b3ffd047185bead67f (patch) | |
tree | 54bedd373530cb401ec26adabe98baaf2d4f6c85 /drivers/media/video/saa7134 | |
parent | c27586e4d647c5c07c81e766d34ceef6ba5a316d (diff) |
V4L/DVB (11860): saa7134: fix quirk in saa7134_i2c_xfer for the saa7131 bridge
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.
Signed-off-by: Michael Krufky <mkrufky@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/saa7134/saa7134-i2c.c b/drivers/media/video/saa7134/saa7134-i2c.c index a8a355e28799..8096dace5f6c 100644 --- a/drivers/media/video/saa7134/saa7134-i2c.c +++ b/drivers/media/video/saa7134/saa7134-i2c.c | |||
@@ -259,7 +259,7 @@ static int saa7134_i2c_xfer(struct i2c_adapter *i2c_adap, | |||
259 | /* workaround for a saa7134 i2c bug | 259 | /* workaround for a saa7134 i2c bug |
260 | * needed to talk to the mt352 demux | 260 | * needed to talk to the mt352 demux |
261 | * thanks to pinnacle for the hint */ | 261 | * thanks to pinnacle for the hint */ |
262 | int quirk = 0xfd; | 262 | int quirk = 0xfe; |
263 | d1printk(" [%02x quirk]",quirk); | 263 | d1printk(" [%02x quirk]",quirk); |
264 | i2c_send_byte(dev,START,quirk); | 264 | i2c_send_byte(dev,START,quirk); |
265 | i2c_recv_byte(dev); | 265 | i2c_recv_byte(dev); |