diff options
author | David Wong <davidtlwong@gmail.com> | 2009-06-11 08:39:04 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-06-16 18:07:56 -0400 |
commit | 6762d953a36833c8b94090781c791c67cb546080 (patch) | |
tree | 639972ba85c4bfd867b71f5636d6f63eda9777f7 /drivers/media/dvb/frontends | |
parent | ba7d457dd352fdc598d9dae733f8d53ace34c9da (diff) |
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>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/lgs8gxx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/lgs8gxx.c b/drivers/media/dvb/frontends/lgs8gxx.c index da689ce9095c..fde27645bbed 100644 --- a/drivers/media/dvb/frontends/lgs8gxx.c +++ b/drivers/media/dvb/frontends/lgs8gxx.c | |||
@@ -610,7 +610,7 @@ static int lgs8gxx_read_signal_agc(struct lgs8gxx_state *priv, u16 *signal) | |||
610 | else | 610 | else |
611 | cat = 0; | 611 | cat = 0; |
612 | 612 | ||
613 | *signal = cat; | 613 | *signal = cat * 65535 / 5; |
614 | 614 | ||
615 | return 0; | 615 | return 0; |
616 | } | 616 | } |
@@ -630,8 +630,8 @@ static int lgs8913_read_signal_strength(struct lgs8gxx_state *priv, u16 *signal) | |||
630 | 630 | ||
631 | if (fake_signal_str) { | 631 | if (fake_signal_str) { |
632 | if ((t & 0xC0) == 0xC0) { | 632 | if ((t & 0xC0) == 0xC0) { |
633 | dprintk("Fake signal strength as 50\n"); | 633 | dprintk("Fake signal strength\n"); |
634 | *signal = 0x32; | 634 | *signal = 0x7FFF; |
635 | } else | 635 | } else |
636 | *signal = 0; | 636 | *signal = 0; |
637 | return 0; | 637 | return 0; |