summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/af9015.h
diff options
context:
space:
mode:
authorGordon Hecker <ghecker@gmx.de>2012-03-14 10:27:30 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-03-19 19:40:58 -0300
commitbe4a5e7f0e279b751a23570da583ec41ca32a34f (patch)
tree440ce7e2adbf8b8fb41db5cbad8d654f2eaebe91 /drivers/media/dvb/dvb-usb/af9015.h
parentd3db22e10bd4997d244beee6feea5fa39b2e5b82 (diff)
[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>
Diffstat (limited to 'drivers/media/dvb/dvb-usb/af9015.h')
-rw-r--r--drivers/media/dvb/dvb-usb/af9015.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.h b/drivers/media/dvb/dvb-usb/af9015.h
index f619063fa72..ee2ec5b8d57 100644
--- a/drivers/media/dvb/dvb-usb/af9015.h
+++ b/drivers/media/dvb/dvb-usb/af9015.h
@@ -108,6 +108,8 @@ struct af9015_state {
int (*read_status[2]) (struct dvb_frontend *fe, fe_status_t *status);
int (*init[2]) (struct dvb_frontend *fe);
int (*sleep[2]) (struct dvb_frontend *fe);
+ int (*tuner_ops_init[2]) (struct dvb_frontend *fe);
+ int (*tuner_ops_sleep[2]) (struct dvb_frontend *fe);
};
struct af9015_config {