summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-04-05 19:08:08 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2008-04-05 19:08:08 -0400
commit92c1a567b19a54ae01821b117d1440c6e0ea0589 (patch)
treea5fd095aafdbc30f2dec45a8a1393b0794859bf8 /linux/drivers
parent325421e72988236de96910aad75fa22dbcc3a52a (diff)
downloadmediapointer-dvb-s2-92c1a567b19a54ae01821b117d1440c6e0ea0589.tar.gz
mediapointer-dvb-s2-92c1a567b19a54ae01821b117d1440c6e0ea0589.tar.bz2
au8522: fix au8522_read_ucblocks for qam
From: Michael Krufky <mkrufky@linuxtv.org> ucblocks are reported in separate registers for vsb & qam Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/frontends/au8522.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/au8522.c b/linux/drivers/media/dvb/frontends/au8522.c
index 81fab7f7c..3d8f6dea4 100644
--- a/linux/drivers/media/dvb/frontends/au8522.c
+++ b/linux/drivers/media/dvb/frontends/au8522.c
@@ -340,7 +340,10 @@ static int au8522_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
{
struct au8522_state *state = fe->demodulator_priv;
- *ucblocks = au8522_readreg(state, 0x4087);
+ if (state->current_modulation == VSB_8)
+ *ucblocks = au8522_readreg(state, 0x4087);
+ else
+ *ucblocks = au8522_readreg(state, 0x4543);
return 0;
}