With the previous code, when the bandwidth changes, but using
the same delivery system, the code used to discard such changes.

This was happening because the bandwidth calculus were after the
check for delivery system changes. The previous patch changed
it to happen together with the delivery system check. So, with
a one-statement change, it is possible to force the tuner to
reconfigure, in order to adjust to bandwidth changes. this will
likely improve it when used on countries with 7MHz/8MHz
channels.

Signed-off-by: Mauro Carvalho Chehab <mche...@redhat.com>
---
 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 c370220..a951011 100644
--- a/drivers/media/common/tuners/mxl5005s.c
+++ b/drivers/media/common/tuners/mxl5005s.c
@@ -4014,7 +4014,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);
 
-- 
1.7.8.352.g876a6

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to