diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-19 17:08:06 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:11:03 -0500 |
commit | 7d3502844609df0985932365197f905e4ea95d22 (patch) | |
tree | c8fc26b112fec4c68370eff2036220077f1ff871 /drivers/media/common | |
parent | 7f2199c03b4946f1b79514b3411e3dbf130a6bba (diff) |
V4L/DVB: tuner-xc2028: Fix demod breakage for XC3028L
A small mistake on the last patch broke demod s-code setup for
XC3028L (firmware 3.2 and upper). Fix it.
Thanks-to: Stefan Ringel <stefan.ringel@arcor.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/tuners/tuner-xc2028.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tuner-xc2028.c b/drivers/media/common/tuners/tuner-xc2028.c index 96f45a80fe56..be51c294b375 100644 --- a/drivers/media/common/tuners/tuner-xc2028.c +++ b/drivers/media/common/tuners/tuner-xc2028.c | |||
@@ -1135,11 +1135,13 @@ static int xc2028_set_params(struct dvb_frontend *fe, | |||
1135 | 1135 | ||
1136 | /* All S-code tables need a 200kHz shift */ | 1136 | /* All S-code tables need a 200kHz shift */ |
1137 | if (priv->ctrl.demod) { | 1137 | if (priv->ctrl.demod) { |
1138 | demod = priv->ctrl.demod; | ||
1139 | |||
1138 | /* | 1140 | /* |
1139 | * Newer firmwares require a 200 kHz offset only for ATSC | 1141 | * Newer firmwares require a 200 kHz offset only for ATSC |
1140 | */ | 1142 | */ |
1141 | if (type == ATSC || priv->firm_version < 0x0302) | 1143 | if (type == ATSC || priv->firm_version < 0x0302) |
1142 | demod = priv->ctrl.demod + 200; | 1144 | demod += 200; |
1143 | /* | 1145 | /* |
1144 | * The DTV7 S-code table needs a 700 kHz shift. | 1146 | * The DTV7 S-code table needs a 700 kHz shift. |
1145 | * | 1147 | * |