diff mbox

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

Message ID 1244592852.3148.44.camel@palomino.walls.org (mailing list archive)
State Superseded
Headers show

Commit Message

Andy Walls June 10, 2009, 12:14 a.m. UTC
All,

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

Any comments?

Regards,
Andy

Signed-off-by: Andy Walls <awalls@radix.net>
Tested-by: Terry Wu <terrywu2009@gmail.com>



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

Patch

diff -r fad35ab59848 linux/drivers/media/common/tuners/tuner-xc2028.c
--- a/linux/drivers/media/common/tuners/tuner-xc2028.c	Fri Jun 05 08:42:27 2009 -0400
+++ b/linux/drivers/media/common/tuners/tuner-xc2028.c	Tue Jun 09 20:10:06 2009 -0400
@@ -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 <terrywu2009@gmail.com> */
+		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);