xc3028: force reload of DTV7 firmware in VHF band as DTV78 firmware is
not working with bw=7 MHz.
The patch is effective only with Zarlink demodulators.

Signed-off-by: Gianluca Gennari <gennar...@gmail.com>
---
 drivers/media/common/tuners/tuner-xc2028.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/media/common/tuners/tuner-xc2028.c
b/drivers/media/common/tuners/tuner-xc2028.c
index e531267..d92f862 100644
--- a/drivers/media/common/tuners/tuner-xc2028.c
+++ b/drivers/media/common/tuners/tuner-xc2028.c
@@ -1129,7 +1129,8 @@ static int xc2028_set_params(struct dvb_frontend *fe,
                        priv->ctrl.vhfbw7 = 1;
                else
                        priv->ctrl.uhfbw8 = 0;
-               type |= (priv->ctrl.vhfbw7 && priv->ctrl.uhfbw8) ? DTV78 : DTV7;
+               type |= (priv->ctrl.demod != XC3028_FE_ZARLINK456 &&
+                  priv->ctrl.vhfbw7 && priv->ctrl.uhfbw8) ? DTV78 : DTV7;
                type |= F8MHZ;
                break;
        case BANDWIDTH_6_MHZ:
-- 
1.7.0.4
--
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