]> 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)
commit08d63ca2aa0f20e3a26734b0a060604de1a7737c
tree440ce7e2adbf8b8fb41db5cbad8d654f2eaebe91
parente09739426279380b9e8aadf28a39cdf21f3e5320
[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