Skip to content

Commit

Permalink
V4L/DVB (12481): Fix lowband tuning with tda8261
Browse files Browse the repository at this point in the history
Attached is a patch which fixes tuning to low frequency channels with
stb0899+tda8261 cards like the KNC TV-Station DVB-S2.
The cause of the issue was a broken if construct, which should have been
an if/else if, so that the setting for the lowest matching frequency is
applied.

Without this patch for example tuning to "arte" on Astra 19.2, 10744MHz
SR22000 failed most times and when it failed the communication between
driver and tda8261 was completely broken.
This problem disappears with the attached patch.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Julian Scheel authored and Mauro Carvalho Chehab committed Sep 12, 2009
1 parent c92f056 commit 114323e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/dvb/frontends/tda8261.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ static int tda8261_set_state(struct dvb_frontend *fe,

if (frequency < 1450000)
buf[3] = 0x00;
if (frequency < 2000000)
else if (frequency < 2000000)
buf[3] = 0x40;
if (frequency < 2150000)
else if (frequency < 2150000)
buf[3] = 0x80;

/* Set params */
Expand Down

0 comments on commit 114323e

Please sign in to comment.