diff options
author | Steven Toth <stoth@linuxtv.org> | 2008-10-13 17:23:49 -0400 |
---|---|---|
committer | Steven Toth <stoth@linuxtv.org> | 2008-10-13 17:23:49 -0400 |
commit | fbca1ee9b4a37576b9c0cb36817733f2eae1f8bb (patch) | |
tree | 1e9c7e93a183e55f571da850ee62e349d6a2ffbf /linux/drivers/media/common/tuners | |
parent | a02327e81915e000e69a6db7297d68d578b8df97 (diff) | |
download | mediapointer-dvb-s2-fbca1ee9b4a37576b9c0cb36817733f2eae1f8bb.tar.gz mediapointer-dvb-s2-fbca1ee9b4a37576b9c0cb36817733f2eae1f8bb.tar.bz2 |
mxl5005s: Bug fix stopped DVB-T from working the second time around.
From: Jose Alberto Reguero <jareguero@telefonica.net>
Jose reported:
I am using a Avermedia Volar X with af9015 driver(DVB-T).
The first time you use the card, first call reconfigure with MXL_QAM, and when
tune DVB-T it calls reconfigure with MXL_DVBT. But if you close the frontend
and open again, it calls reconfigure with MXL_QAM, but not call reconfigure with
MXL_DVBT because state->current_mode don't change(is MXL_DVBT).
Priority: normal
Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/common/tuners')
-rw-r--r-- | linux/drivers/media/common/tuners/mxl5005s.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/common/tuners/mxl5005s.c b/linux/drivers/media/common/tuners/mxl5005s.c index 4cdca9f88..3ed0d45cd 100644 --- a/linux/drivers/media/common/tuners/mxl5005s.c +++ b/linux/drivers/media/common/tuners/mxl5005s.c @@ -3914,7 +3914,10 @@ static int mxl5005s_writeregs(struct dvb_frontend *fe, u8 *addrtable, static int mxl5005s_init(struct dvb_frontend *fe) { + struct mxl5005s_state *state = fe->tuner_priv; + dprintk(1, "%s()\n", __func__); + state->current_mode = MXL_QAM; return mxl5005s_reconfigure(fe, MXL_QAM, MXL5005S_BANDWIDTH_6MHZ); } @@ -4096,7 +4099,6 @@ struct dvb_frontend *mxl5005s_attach(struct dvb_frontend *fe, state->frontend = fe; state->config = config; state->i2c = i2c; - state->current_mode = MXL_QAM; printk(KERN_INFO "MXL5005S: Attached at address 0x%02x\n", config->i2c_address); |