diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-04-05 19:08:08 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-04-05 19:08:08 -0400 |
commit | 92c1a567b19a54ae01821b117d1440c6e0ea0589 (patch) | |
tree | a5fd095aafdbc30f2dec45a8a1393b0794859bf8 /linux/drivers | |
parent | 325421e72988236de96910aad75fa22dbcc3a52a (diff) | |
download | mediapointer-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.c | 5 |
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; } |