diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-31 15:09:07 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-05-31 15:09:07 +0000 |
commit | 1614e38161dbbe2cb0a03ca75e4d4c4663f7bc2e (patch) | |
tree | 260520f1db3b3797d26e2c560036ecfeb5dbacfe | |
parent | a331cce0876566ae8a7144ce1a56fe8c71e0194b (diff) | |
download | mediapointer-dvb-s2-1614e38161dbbe2cb0a03ca75e4d4c4663f7bc2e.tar.gz mediapointer-dvb-s2-1614e38161dbbe2cb0a03ca75e4d4c4663f7bc2e.tar.bz2 |
si470x: afc indication
From: Tobias Lorenz <tobias.lorenz@gmx.net>
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>
-rw-r--r-- | linux/drivers/media/radio/radio-si470x.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/radio/radio-si470x.c b/linux/drivers/media/radio/radio-si470x.c index e56ce15aa..5cebcc11c 100644 --- a/linux/drivers/media/radio/radio-si470x.c +++ b/linux/drivers/media/radio/radio-si470x.c @@ -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: @@ -1401,7 +1402,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) |