diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-21 07:13:50 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-31 08:27:11 -0200 |
commit | 1b750d09fe362a231b9a25ed75e61f642f24c880 (patch) | |
tree | e6b0825b5adfa40cf220f5364ae8fb23a8796320 /drivers/media | |
parent | 9818d7dff2a0a1d8a51f077a16efbe5b705278b5 (diff) |
[media] mxl5005s: fix: don't discard bandwidth changes
There is a bug on mxl5005s logic: when the bandwidth changes, but using
the same delivery system, the code discard the set_params()
reconfiguration request.
This was happening because, in the previous coding, the bandwidth
calculus were after the check for delivery system changes.
The previous patch changed the logic to estimate the bandwidth to
happend together with the changes at the delivery system.
So, with a one-statement change, it is possible to make the tuner to
reconfigure, in order to adjust to bandwidth changes. this will
likely fix issues on countries that use 7MHz/8MHz DVB-T channels.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/common/tuners/mxl5005s.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/mxl5005s.c b/drivers/media/common/tuners/mxl5005s.c index c63f7676992b..c35d3551410e 100644 --- a/drivers/media/common/tuners/mxl5005s.c +++ b/drivers/media/common/tuners/mxl5005s.c @@ -4019,7 +4019,8 @@ static int mxl5005s_set_params(struct dvb_frontend *fe, } /* Change tuner for new modulation type if reqd */ - if (req_mode != state->current_mode) { + if (req_mode != state->current_mode || + req_bw != state->Chan_Bandwidth) { state->current_mode = req_mode; ret = mxl5005s_reconfigure(fe, req_mode, req_bw); |