mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 10:01:41 +00:00
[media] r820t: better report signal strength
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>
This commit is contained in:
parent
84ddc33c20
commit
75c1819e5e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user