aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-04-05 22:08:08 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:43 -0400
commit8973dc4b70c5506596207da3fddab03002357178 (patch)
tree8f93a318a628c170a7ff34c3244a532485c65e78
parentce1719a61c7c0ac40c6244e6b354181dde27062d (diff)
V4L/DVB (7630): au8522: fix au8522_read_ucblocks for qam
ucblocks are reported in separate registers for vsb & qam Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/dvb/frontends/au8522.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/au8522.c b/drivers/media/dvb/frontends/au8522.c
index dc01e75cdc60..9fb61e6ed679 100644
--- a/drivers/media/dvb/frontends/au8522.c
+++ b/drivers/media/dvb/frontends/au8522.c
@@ -340,7 +340,10 @@ static int au8522_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
340{ 340{
341 struct au8522_state *state = fe->demodulator_priv; 341 struct au8522_state *state = fe->demodulator_priv;
342 342
343 *ucblocks = au8522_readreg(state, 0x4087); 343 if (state->current_modulation == VSB_8)
344 *ucblocks = au8522_readreg(state, 0x4087);
345 else
346 *ucblocks = au8522_readreg(state, 0x4543);
344 347
345 return 0; 348 return 0;
346} 349}