From d44e8702cc6beb2695e3c70c44a1ce4dd6893376 Mon Sep 17 00:00:00 2001 From: Tobias Lorenz Date: Sat, 31 May 2008 15:09:07 -0300 Subject: [PATCH] --- yaml --- r: 103819 b: refs/heads/master c: ace7d4bbe6170ef9b72bfa82c3e5769d250fffae h: refs/heads/master i: 103817: b3a8d6dc9a2c85242a791b91c54c03e850b754cc 103815: bd4b9b1834f7c189f65159b29b4dd415c3f68f69 v: v3 --- [refs] | 2 +- trunk/drivers/media/radio/radio-si470x.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 3b1b2a5b1bad..d9f6d4b7de59 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a7c850a07eddf0e0f515d57b2ce696a9779c6ed1 +refs/heads/master: ace7d4bbe6170ef9b72bfa82c3e5769d250fffae diff --git a/trunk/drivers/media/radio/radio-si470x.c b/trunk/drivers/media/radio/radio-si470x.c index 954ba997895d..db9d64a228bb 100644 --- a/trunk/drivers/media/radio/radio-si470x.c +++ b/trunk/drivers/media/radio/radio-si470x.c @@ -101,6 +101,7 @@ * - unplugging fixed * 2008-05-07 Tobias Lorenz * Version 1.0.8 + * - afc indication * - more safety checks, let si470x_get_freq return errno * * ToDo: @@ -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)