summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-10-24 08:23:17 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2007-10-24 08:23:17 -0400
commit0c2c3851d68bcc621a0e4c3d3b9469da047ed7b7 (patch)
tree752c3f94256dc4066b55fea62e854e5a7fe78545 /linux
parent3c5bcbaf545783293afcf23dce8c88ead829f6c0 (diff)
downloadmediapointer-dvb-s2-0c2c3851d68bcc621a0e4c3d3b9469da047ed7b7.tar.gz
mediapointer-dvb-s2-0c2c3851d68bcc621a0e4c3d3b9469da047ed7b7.tar.bz2
tuner: add i2c_gate_ctrl function to struct analog_tuner_ops
From: Michael Krufky <mkrufky@linuxtv.org> In some designs, the tuner silicon may be on an i2c bus behind an i2c gate, controlled by the analog demodulator. We already have a method to control such i2c gates when they are controlled by the digital demodulator, but in some hybrid designs, there may be an i2c gate controlled by each demodulator. For example, when in analog tuning mode, one would access the tuner by opening the i2c gate controlled by the analog demodulator, while when in digital tuning mode, one would access the tuner by opening the i2c gate controlled by the digital demodulator. We must add this callback function to analog_tuner_ops in order to handle such configurations. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org> --- linux/drivers/media/video/tuner-driver.h | 1 + 1 file changed, 1 insertion(+)
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/video/tuner-driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tuner-driver.h b/linux/drivers/media/video/tuner-driver.h
index 2794e718b..ad2d57dfb 100644
--- a/linux/drivers/media/video/tuner-driver.h
+++ b/linux/drivers/media/video/tuner-driver.h
@@ -40,6 +40,7 @@ struct analog_tuner_ops {
void (*tuner_status)(struct dvb_frontend *fe);
void (*standby)(struct dvb_frontend *fe);
void (*release)(struct dvb_frontend *fe);
+ int (*i2c_gate_ctrl)(struct dvb_frontend *fe, int enable);
};
struct tuner {