diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-11 12:39:04 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-11 12:39:04 +0000 |
commit | 4a2e9d7d8ff2bfc867b6ac6b4ebf2c831b1c6e0a (patch) | |
tree | d4f5c1554ae099c49e799e609198b78c261b3757 /linux/drivers/media/dvb/frontends/lgs8gxx.c | |
parent | f4b54f7a0bb1daf912ce8e3013e34cccebba6a34 (diff) | |
download | mediapointer-dvb-s2-4a2e9d7d8ff2bfc867b6ac6b4ebf2c831b1c6e0a.tar.gz mediapointer-dvb-s2-4a2e9d7d8ff2bfc867b6ac6b4ebf2c831b1c6e0a.tar.bz2 |
lgs8gxx: update signal strength scale
From: David Wong <davidtlwong@gmail.com>
lgs8gxx: update signal strength scale
Signed-off-by: David T.L. Wong <davidtlwong <at> gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/lgs8gxx.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/lgs8gxx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/lgs8gxx.c b/linux/drivers/media/dvb/frontends/lgs8gxx.c index a5b7bdeff..1ce30aa53 100644 --- a/linux/drivers/media/dvb/frontends/lgs8gxx.c +++ b/linux/drivers/media/dvb/frontends/lgs8gxx.c @@ -650,7 +650,7 @@ static int lgs8gxx_read_signal_agc(struct lgs8gxx_state *priv, u16 *signal) else cat = 0; - *signal = cat; + *signal = cat * 65535 / 5; return 0; } @@ -670,8 +670,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; |