diff options
author | Jose Alberto Reguero <jareguero@telefonica.net> | 2008-10-13 17:23:49 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-17 16:30:33 -0400 |
commit | ca341e4d1b07ac9077b448c623ec256c89a2e080 (patch) | |
tree | fff806c2d9368441cb233b6fe3c6ea1e7a1cdc77 /drivers/media/common | |
parent | 96b7a1a838fb5b8746fc22f4ff3cef358bf59f35 (diff) |
V4L/DVB (9272): mxl5005s: Bug fix stopped DVB-T from working the second time around.
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).
Signed-off-by: Jose Alberto Reguero <jareguero@telefonica.net>
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/tuners/mxl5005s.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/mxl5005s.c b/drivers/media/common/tuners/mxl5005s.c index 3844e1c00ffc..a8878244bb3c 100644 --- a/drivers/media/common/tuners/mxl5005s.c +++ b/drivers/media/common/tuners/mxl5005s.c | |||
@@ -3912,7 +3912,10 @@ static int mxl5005s_writeregs(struct dvb_frontend *fe, u8 *addrtable, | |||
3912 | 3912 | ||
3913 | static int mxl5005s_init(struct dvb_frontend *fe) | 3913 | static int mxl5005s_init(struct dvb_frontend *fe) |
3914 | { | 3914 | { |
3915 | struct mxl5005s_state *state = fe->tuner_priv; | ||
3916 | |||
3915 | dprintk(1, "%s()\n", __func__); | 3917 | dprintk(1, "%s()\n", __func__); |
3918 | state->current_mode = MXL_QAM; | ||
3916 | return mxl5005s_reconfigure(fe, MXL_QAM, MXL5005S_BANDWIDTH_6MHZ); | 3919 | return mxl5005s_reconfigure(fe, MXL_QAM, MXL5005S_BANDWIDTH_6MHZ); |
3917 | } | 3920 | } |
3918 | 3921 | ||
@@ -4094,7 +4097,6 @@ struct dvb_frontend *mxl5005s_attach(struct dvb_frontend *fe, | |||
4094 | state->frontend = fe; | 4097 | state->frontend = fe; |
4095 | state->config = config; | 4098 | state->config = config; |
4096 | state->i2c = i2c; | 4099 | state->i2c = i2c; |
4097 | state->current_mode = MXL_QAM; | ||
4098 | 4100 | ||
4099 | printk(KERN_INFO "MXL5005S: Attached at address 0x%02x\n", | 4101 | printk(KERN_INFO "MXL5005S: Attached at address 0x%02x\n", |
4100 | config->i2c_address); | 4102 | config->i2c_address); |