Skip to contentSkip to conversation

tuner-xc2028: Fix 7 MHz DVB-T when used with zl10353 demod

PATCH New Andy Walls 1 participant 1 message Jun 10, 2009 Media (V4L/DVB)

lore
Share & tools
lore

Andy Walls

author
#0 lore raw

PATCH 1/1 tuner-xc2028: Fix 7 MHz DVB-T when used with zl10353 demod

All,

The following is a patch that gets 7 MHz DVB-T working for the Leadtek DVR3100 H.

Any comments?

Regards,
Andy

linux/drivers/media/common/tuners/tuner-xc2028.c +6 -1
diff -r fad35ab59848 linux/drivers/media/common/tuners/tuner-xc2028.c
@@ -1099,8 +1099,13 @@
 	}
 
 	/* All S-code tables need a 200kHz shift */
-	if (priv->ctrl.demod)
+	if (priv->ctrl.demod) {
 		demod = priv->ctrl.demod + 200;
+		/* Terry Wu <[email protected]> */
+		if (priv->ctrl.demod == XC3028_FE_ZARLINK456 &&
+		    bw == BANDWIDTH_7_MHZ)
+			demod += 500;
+	}
 
 	return generic_set_freq(fe, p->frequency,
 				T_DIGITAL_TV, type, 0, demod);