OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84ddc33
)
[media] r820t: better report signal strength
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 10 Apr 2013 12:04:03 +0000
(09:04 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 17 Apr 2013 00:29:31 +0000
(21:29 -0300)
If signal is zero, shows it as a zero, not as 0xff.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Tested-by: Antti Palosaari <crope@iki.fi>
drivers/media/tuners/r820t.c
patch
|
blob
|
history
diff --git
a/drivers/media/tuners/r820t.c
b/drivers/media/tuners/r820t.c
index
5be4635
..
d5686e8
100644
(file)
--- a/
drivers/media/tuners/r820t.c
+++ b/
drivers/media/tuners/r820t.c
@@
-1506,6
+1506,8
@@
static int r820t_signal(struct dvb_frontend *fe, u16 *strength)
/* A higher gain at LNA means a lower signal strength */
*strength = (45 - rc) << 4 | 0xff;
+ if (*strength == 0xff)
+ *strength = 0;
} else {
*strength = 0;
}