Skip to content

Commit

Permalink
V4L/DVB (6641): xc2028: correct tuner offset for 7MHz DTV
Browse files Browse the repository at this point in the history
7MHz bandwidth DVB-T needs an adjusted offset at the PLL to ensure the IF
output is correctly centered.

Signed-off-by: Chris Pascoe <c.pascoe@itee.uq.edu.au>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Chris Pascoe authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent ddf1c5f commit a44f1c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/media/video/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -764,8 +764,11 @@ static int generic_set_tv_freq(struct dvb_frontend *fe, u32 freq /* in Hz */ ,
if (check_firmware(fe, new_mode, std, bandwidth) < 0)
goto ret;

if (new_mode == T_DIGITAL_TV)
if (new_mode == T_DIGITAL_TV) {
offset = 2750000;
if (priv->bandwidth == BANDWIDTH_7_MHZ)
offset -= 500000;
}

div = (freq - offset + DIV / 2) / DIV;

Expand Down

0 comments on commit a44f1c4

Please sign in to comment.