提交 7d350284 编写于 作者: M Mauro Carvalho Chehab

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: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 7f2199c0
......@@ -1135,11 +1135,13 @@ static int xc2028_set_params(struct dvb_frontend *fe,
/* All S-code tables need a 200kHz shift */
if (priv->ctrl.demod) {
demod = priv->ctrl.demod;
/*
* Newer firmwares require a 200 kHz offset only for ATSC
*/
if (type == ATSC || priv->firm_version < 0x0302)
demod = priv->ctrl.demod + 200;
demod += 200;
/*
* The DTV7 S-code table needs a 700 kHz shift.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册