]> git.baikalelectronics.ru Git - kernel.git/commit
[media] af9015: fix i2c failures for dual-tuner devices
authorGordon Hecker <ghecker@gmx.de>
Wed, 14 Mar 2012 13:27:30 +0000 (10:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 19 Mar 2012 22:40:58 +0000 (19:40 -0300)
commitff858d3d2827fb9a249f577d196b55d7eb0234fe
tree440ce7e2adbf8b8fb41db5cbad8d654f2eaebe91
parentd4415af30379f5ff2dc4f8dd62305c94ef690e7d
[media] af9015: fix i2c failures for dual-tuner devices

The i2c failures were caused by enabling both i2c gates
at the same time while putting the tuners asleep.

This patch removes the init() and sleep() callbacks from the tuner,
to prevent frontend.c from calling
  i2c_gate_ctrl
  tuner init / sleep
  i2c_gate_ctrl
without holding the lock.
tuner init() and sleep() are instead called in frontend init() and
sleep().

Signed-off-by: Gordon Hecker <ghecker@gmx.de>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9015.c
drivers/media/dvb/dvb-usb/af9015.h