aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2006-05-22 09:32:02 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-25 01:00:06 -0400
commit5c1208ba457a1668c81868060c08496a2d053be0 (patch)
tree293abaefbcb991b6f6d645447ff41aaea3428f11 /drivers/media/dvb/frontends
parent48c35756a762e2d569dfd9ab2f24d1b63ea657b9 (diff)
V4L/DVB (3984): Fix CI interface on KNC1 DVBT and DVBC cards
These cards need special handling for CI - reinitialising the frontend device when the CI module is reset. Additionally the tda10021 needs to be set into a different transport stream mode when a CI module is present. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r--drivers/media/dvb/frontends/tda10021.c8
-rw-r--r--drivers/media/dvb/frontends/tda10021.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/tda10021.c b/drivers/media/dvb/frontends/tda10021.c
index 12e0ec27cb3c..c42997917191 100644
--- a/drivers/media/dvb/frontends/tda10021.c
+++ b/drivers/media/dvb/frontends/tda10021.c
@@ -90,6 +90,14 @@ static int tda10021_writereg (struct tda10021_state* state, u8 reg, u8 data)
90 return (ret != 1) ? -EREMOTEIO : 0; 90 return (ret != 1) ? -EREMOTEIO : 0;
91} 91}
92 92
93int tda10021_write_byte(struct dvb_frontend* fe, int reg, int data)
94{
95 struct tda10021_state* state = fe->demodulator_priv;
96
97 return tda10021_writereg(state, reg, data);
98}
99EXPORT_SYMBOL(tda10021_write_byte);
100
93static u8 tda10021_readreg (struct tda10021_state* state, u8 reg) 101static u8 tda10021_readreg (struct tda10021_state* state, u8 reg)
94{ 102{
95 u8 b0 [] = { reg }; 103 u8 b0 [] = { reg };
diff --git a/drivers/media/dvb/frontends/tda10021.h b/drivers/media/dvb/frontends/tda10021.h
index 3fc338e0ec4f..b1df4259bee9 100644
--- a/drivers/media/dvb/frontends/tda10021.h
+++ b/drivers/media/dvb/frontends/tda10021.h
@@ -35,4 +35,6 @@ struct tda10021_config
35extern struct dvb_frontend* tda10021_attach(const struct tda10021_config* config, 35extern struct dvb_frontend* tda10021_attach(const struct tda10021_config* config,
36 struct i2c_adapter* i2c, u8 pwm); 36 struct i2c_adapter* i2c, u8 pwm);
37 37
38extern int tda10021_write_byte(struct dvb_frontend* fe, int reg, int data);
39
38#endif // TDA10021_H 40#endif // TDA10021_H