[1/1] xc3028: force reload of DTV7 firmware in VHF band with Zarlink demodulator

Message ID 4EDE2809.1040406@gmail.com (mailing list archive)
State Changes Requested, archived
Headers

Commit Message

Gianluca Gennari Dec. 6, 2011, 2:34 p.m. UTC
  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 <gennarone@gmail.com>
---
 drivers/media/common/tuners/tuner-xc2028.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
  

Patch

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: