Skip to content

Commit

Permalink
V4L/DVB (7996): si470x: afc indication
Browse files Browse the repository at this point in the history
This patch brings the following changes:
- afc indication:
  device has no indication whether freq is too low or too high
  therefore afc always return 1, when freq is wrong

Signed-off-by: Tobias Lorenz <tobias.lorenz@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Tobias Lorenz authored and Mauro Carvalho Chehab committed Jul 20, 2008
1 parent a7c850a commit ace7d4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/media/radio/radio-si470x.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
* - unplugging fixed
* 2008-05-07 Tobias Lorenz <tobias.lorenz@gmx.net>
* Version 1.0.8
* - afc indication
* - more safety checks, let si470x_get_freq return errno
*
* ToDo:
Expand Down Expand Up @@ -1390,7 +1391,8 @@ static int si470x_vidioc_g_tuner(struct file *file, void *priv,
* 0x0101;

/* automatic frequency control: -1: freq to low, 1 freq to high */
tuner->afc = 0;
/* AFCRL does only indicate that freq. differs, not if too low/high */
tuner->afc = (radio->registers[STATUSRSSI] & STATUSRSSI_AFCRL) ? 1 : 0;

done:
if (retval < 0)
Expand Down

0 comments on commit ace7d4b

Please sign in to comment.