Commit 1b750d09 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[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: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 9818d7df
...@@ -4019,7 +4019,8 @@ static int mxl5005s_set_params(struct dvb_frontend *fe, ...@@ -4019,7 +4019,8 @@ static int mxl5005s_set_params(struct dvb_frontend *fe,
} }
/* Change tuner for new modulation type if reqd */ /* 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; state->current_mode = req_mode;
ret = mxl5005s_reconfigure(fe, req_mode, req_bw); ret = mxl5005s_reconfigure(fe, req_mode, req_bw);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment