]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx: add support for em25xx i2c bus B read/write/check device operations
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Tue, 26 Mar 2013 16:38:36 +0000 (13:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 28 Mar 2013 20:37:45 +0000 (17:37 -0300)
commit07d0030ca56934485081161353997f36462548d3
tree0e4e41e215a6008bd6f0131a7dd90350223f9147
parent5b23708e8cefbfeaa63cc139f846320d419ce9f5
[media] em28xx: add support for em25xx i2c bus B read/write/check device operations

The webcam "SpeedLink VAD Laplace" (em2765 + ov2640) uses a special algorithm
for i2c communication with the sensor, which is connected to a second i2c bus.
We don't know yet how to find out which devices support/use it.
It's very likely used by all em25xx and em276x+ bridges.
Tests with other em28xx chips (em2820, em2882/em2883) show, that this
algorithm always succeeds there although no slave device is connected.
The algorithm likely also works for real i2c client devices (OV2640 uses SCCB),
because the Windows driver seems to use it for probing Samsung and Kodak
sensors.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-cards.c
drivers/media/usb/em28xx/em28xx-i2c.c
drivers/media/usb/em28xx/em28xx.h