mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 13:51:00 +07:00
V4L/DVB (12001): lgs8gxx: update signal strength scale
lgs8gxx: update signal strength scale Signed-off-by: David T.L. Wong <davidtlwong@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
ba7d457dd3
commit
6762d953a3
@ -610,7 +610,7 @@ static int lgs8gxx_read_signal_agc(struct lgs8gxx_state *priv, u16 *signal)
|
||||
else
|
||||
cat = 0;
|
||||
|
||||
*signal = cat;
|
||||
*signal = cat * 65535 / 5;
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -630,8 +630,8 @@ static int lgs8913_read_signal_strength(struct lgs8gxx_state *priv, u16 *signal)
|
||||
|
||||
if (fake_signal_str) {
|
||||
if ((t & 0xC0) == 0xC0) {
|
||||
dprintk("Fake signal strength as 50\n");
|
||||
*signal = 0x32;
|
||||
dprintk("Fake signal strength\n");
|
||||
*signal = 0x7FFF;
|
||||
} else
|
||||
*signal = 0;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user