summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-07-05 09:25:04 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-07-05 09:25:04 -0300
commit4bc820a744a300fa8a4fe1adb5f87594f286ea41 (patch)
treeed9ca1205062168996ee1ebae9b5d4b1086564d0 /linux/drivers/media/common
parente060bd6ae7ce4dee0f07e3ac5051de35b4908bd0 (diff)
parent6dfa16c1aa732ce5a5c0f0404e70ed2d65675b6b (diff)
downloadmediapointer-dvb-s2-4bc820a744a300fa8a4fe1adb5f87594f286ea41.tar.gz
mediapointer-dvb-s2-4bc820a744a300fa8a4fe1adb5f87594f286ea41.tar.bz2
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-dm646x
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/common')
-rw-r--r--linux/drivers/media/common/tuners/tuner-xc2028.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/linux/drivers/media/common/tuners/tuner-xc2028.c b/linux/drivers/media/common/tuners/tuner-xc2028.c
index a7466867c..8ead0e1e1 100644
--- a/linux/drivers/media/common/tuners/tuner-xc2028.c
+++ b/linux/drivers/media/common/tuners/tuner-xc2028.c
@@ -1100,8 +1100,19 @@ static int xc2028_set_params(struct dvb_frontend *fe,
}
/* All S-code tables need a 200kHz shift */
- if (priv->ctrl.demod)
+ if (priv->ctrl.demod) {
demod = priv->ctrl.demod + 200;
+ /*
+ * The DTV7 S-code table needs a 700 kHz shift.
+ * Thanks to Terry Wu <terrywu2009@gmail.com> for reporting this
+ *
+ * DTV7 is only used in Australia. Germany or Italy may also
+ * use this firmware after initialization, but a tune to a UHF
+ * channel should then cause DTV78 to be used.
+ */
+ if (type & DTV7)
+ demod += 500;
+ }
return generic_set_freq(fe, p->frequency,
T_DIGITAL_TV, type, 0, demod);