diff mbox

[2/4] lgs8gxx: update signal strength scale

Message ID 15ed362e0906110539o44d981a0n21c9babde3392d57@mail.gmail.com (mailing list archive)
State Accepted
Headers show

Commit Message

David Wong June 11, 2009, 12:39 p.m. UTC
lgs8gxx: update signal strength scale

Signed-off-by: David T.L. Wong <davidtlwong <at> gmail.com>
diff mbox

Patch

diff -r b13db1935c48 -r af8ce23f588e linux/drivers/media/dvb/frontends/lgs8gxx.c
--- a/linux/drivers/media/dvb/frontends/lgs8gxx.c	Thu Jun 11 18:59:34 2009 +0800
+++ b/linux/drivers/media/dvb/frontends/lgs8gxx.c	Thu Jun 11 19:05:08 2009 +0800
@@ -650,7 +650,7 @@ 
 	else
 		cat = 0;
 
-	*signal = cat;
+	*signal = cat * 65535 / 5;
 
 	return 0;
 }
@@ -670,8 +670,8 @@ 
 
 	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;