aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/au8522_priv.h
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-11 02:00:36 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:24 -0400
commit209fdf66b8699a6b2998b58e572d67230dae507f (patch)
treea2b287bf353d610d50b1d041d15e3f8a927fe70c /drivers/media/dvb/frontends/au8522_priv.h
parent7bf63eda681e095ca3c39d075354053107febf80 (diff)
V4L/DVB (11064): au8522: make use of hybrid framework so analog/digital demod can share state
Make use of the hybrid tuner framework so the analog and digital parts of the au8522 demodulator can make use of the same shared state. Thanks to Michael Krufky <mkrufky@linuxtv.org> and Steven Toth <stoth@linuxtv.org> for providing sample hardware, engineering level support, and testing. Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/au8522_priv.h')
-rw-r--r--drivers/media/dvb/frontends/au8522_priv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/au8522_priv.h b/drivers/media/dvb/frontends/au8522_priv.h
index 569675d295d5..98b09caa2123 100644
--- a/drivers/media/dvb/frontends/au8522_priv.h
+++ b/drivers/media/dvb/frontends/au8522_priv.h
@@ -37,6 +37,10 @@
37struct au8522_state { 37struct au8522_state {
38 struct i2c_adapter *i2c; 38 struct i2c_adapter *i2c;
39 39
40 /* Used for sharing of the state between analog and digital mode */
41 struct tuner_i2c_props i2c_props;
42 struct list_head hybrid_tuner_instance_list;
43
40 /* configuration settings */ 44 /* configuration settings */
41 const struct au8522_config *config; 45 const struct au8522_config *config;
42 46
@@ -55,3 +59,7 @@ int au8522_writereg(struct au8522_state *state, u16 reg, u8 data);
55u8 au8522_readreg(struct au8522_state *state, u16 reg); 59u8 au8522_readreg(struct au8522_state *state, u16 reg);
56int au8522_init(struct dvb_frontend *fe); 60int au8522_init(struct dvb_frontend *fe);
57int au8522_sleep(struct dvb_frontend *fe); 61int au8522_sleep(struct dvb_frontend *fe);
62
63int au8522_get_state(struct au8522_state **state, struct i2c_adapter *i2c,
64 u8 client_address);
65void au8522_release_state(struct au8522_state *state);