[PATCH 2/4] lgs8gxx: update signal strength scale

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



lgs8gxx: update signal strength scale

Signed-off-by: David T.L. Wong <davidtlwong <at> gmail.com>
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;


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux