Skip to content

Commit

Permalink
V4L/DVB: tuner-xc2028: Fix demod breakage for XC3028L
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 7f2199c commit 7d35028
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/common/tuners/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 7d35028

Please sign in to comment.