summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/dvb-usb/af9015.h
diff options
context:
space:
mode:
authorAntti Palosaari2011-11-13 02:33:30 +0100
committerMauro Carvalho Chehab2011-12-30 18:30:03 +0100
commite90ab840fb826621c8c01cc9e70ca3f0889fa416 (patch)
tree68863d3856baab231f7cd39d762bf20312fbc995 /drivers/media/dvb/dvb-usb/af9015.h
parent[media] s5p-csis: Enable v4l subdev device node (diff)
downloadkernel-qcow2-linux-e90ab840fb826621c8c01cc9e70ca3f0889fa416.tar.gz
kernel-qcow2-linux-e90ab840fb826621c8c01cc9e70ca3f0889fa416.tar.xz
kernel-qcow2-linux-e90ab840fb826621c8c01cc9e70ca3f0889fa416.zip
[media] af9015: limit I2C access to keep FW happy
AF9015 firmware does not like if it gets interrupted by I2C adapter request on some critical phases. During normal operation I2C adapter is used only 2nd demodulator and tuner on dual tuner devices. Override demodulator callbacks and use mutex for limit access to those "critical" paths to keep AF9015 happy. 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-usb/af9015.h b/drivers/media/dvb/dvb-usb/af9015.h
index 6252ea6c1904..4a126177e101 100644
--- a/drivers/media/dvb/dvb-usb/af9015.h
+++ b/drivers/media/dvb/dvb-usb/af9015.h
@@ -102,6 +102,13 @@ struct af9015_state {
u8 rc_repeat;
u32 rc_keycode;
u8 rc_last[4];
+
+ /* for demod callback override */
+ int (*set_frontend[2]) (struct dvb_frontend *fe,
+ struct dvb_frontend_parameters *params);
+ 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);
};
struct af9015_config {