diff options
author | Tobias Lorenz <tobias.lorenz@gmx.net> | 2008-05-31 14:09:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:08:38 -0400 |
commit | ace7d4bbe6170ef9b72bfa82c3e5769d250fffae (patch) | |
tree | 0b02d4d7c713b4ed0084194f6d2db65a7d4ee373 /drivers/media/radio | |
parent | a7c850a07eddf0e0f515d57b2ce696a9779c6ed1 (diff) |
V4L/DVB (7996): si470x: afc indication
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>
Diffstat (limited to 'drivers/media/radio')
-rw-r--r-- | drivers/media/radio/radio-si470x.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-si470x.c b/drivers/media/radio/radio-si470x.c index 954ba997895d..db9d64a228bb 100644 --- a/drivers/media/radio/radio-si470x.c +++ b/drivers/media/radio/radio-si470x.c | |||
@@ -101,6 +101,7 @@ | |||
101 | * - unplugging fixed | 101 | * - unplugging fixed |
102 | * 2008-05-07 Tobias Lorenz <tobias.lorenz@gmx.net> | 102 | * 2008-05-07 Tobias Lorenz <tobias.lorenz@gmx.net> |
103 | * Version 1.0.8 | 103 | * Version 1.0.8 |
104 | * - afc indication | ||
104 | * - more safety checks, let si470x_get_freq return errno | 105 | * - more safety checks, let si470x_get_freq return errno |
105 | * | 106 | * |
106 | * ToDo: | 107 | * ToDo: |
@@ -1390,7 +1391,8 @@ static int si470x_vidioc_g_tuner(struct file *file, void *priv, | |||
1390 | * 0x0101; | 1391 | * 0x0101; |
1391 | 1392 | ||
1392 | /* automatic frequency control: -1: freq to low, 1 freq to high */ | 1393 | /* automatic frequency control: -1: freq to low, 1 freq to high */ |
1393 | tuner->afc = 0; | 1394 | /* AFCRL does only indicate that freq. differs, not if too low/high */ |
1395 | tuner->afc = (radio->registers[STATUSRSSI] & STATUSRSSI_AFCRL) ? 1 : 0; | ||
1394 | 1396 | ||
1395 | done: | 1397 | done: |
1396 | if (retval < 0) | 1398 | if (retval < 0) |