V4L/DVB (6858): Fix offset for ATSC
authorMauro Carvalho Chehab <mchehab@infradead.org>
Tue, 18 Dec 2007 03:30:52 +0000 (00:30 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:04:03 +0000 (19:04 -0200)
ATSC works with offset=0

Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/tuner-xc2028.c

index 0565edd224bcb01db161f46b149420236efd0d32..d367f205c98a7fac83263ca9a4fc7dcebc29f16b 100644 (file)
@@ -873,7 +873,7 @@ static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
         */
        if (new_mode == T_ANALOG_TV) {
                rc = send_seq(priv, {0x00, 0x00});
-       } else {
+       } else if (!(priv->cur_fw.type & ATSC)) {
                offset = 2750000;
                /*
                 * We must adjust the offset by 500kHz in two cases in order