summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/au8522_priv.h
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-11 02:00:36 -0400
committerDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-11 02:00:36 -0400
commit552d2a4fdce766a81187b285e8114ee089b7a721 (patch)
tree7df364df166f32bc097e949e3aa54d7599c08e23 /linux/drivers/media/dvb/frontends/au8522_priv.h
parentc55d671ee9eb267b04c218863cd9a577fa036dbc (diff)
downloadmediapointer-dvb-s2-552d2a4fdce766a81187b285e8114ee089b7a721.tar.gz
mediapointer-dvb-s2-552d2a4fdce766a81187b285e8114ee089b7a721.tar.bz2
au8522: make use of hybrid framework so analog/digital demod can share state
From: Devin Heitmueller <dheitmueller@linuxtv.org> 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. Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/au8522_priv.h')
-rw-r--r--linux/drivers/media/dvb/frontends/au8522_priv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/au8522_priv.h b/linux/drivers/media/dvb/frontends/au8522_priv.h
index 569675d29..98b09caa2 100644
--- a/linux/drivers/media/dvb/frontends/au8522_priv.h
+++ b/linux/drivers/media/dvb/frontends/au8522_priv.h
@@ -37,6 +37,10 @@
struct au8522_state {
struct i2c_adapter *i2c;
+ /* Used for sharing of the state between analog and digital mode */
+ struct tuner_i2c_props i2c_props;
+ struct list_head hybrid_tuner_instance_list;
+
/* configuration settings */
const struct au8522_config *config;
@@ -55,3 +59,7 @@ int au8522_writereg(struct au8522_state *state, u16 reg, u8 data);
u8 au8522_readreg(struct au8522_state *state, u16 reg);
int au8522_init(struct dvb_frontend *fe);
int au8522_sleep(struct dvb_frontend *fe);
+
+int au8522_get_state(struct au8522_state **state, struct i2c_adapter *i2c,
+ u8 client_address);
+void au8522_release_state(struct au8522_state *state);