This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/xawtv3.git tree:

Subject: radio: Fix signal strength indicator
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Fri Jan 28 20:58:09 2011 -0200

Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 console/radio.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/xawtv3.git?a=commitdiff;h=789aaf14606d96116707db8aca4728fb8213172e

diff --git a/console/radio.c b/console/radio.c
index aa4cbdc..d016e47 100644
--- a/console/radio.c
+++ b/console/radio.c
@@ -121,13 +121,16 @@ radio_getsignal(int fd)
        return 0;
     }
 
-    signal = (tuner.signal)>>13;
+    /* Signal will range from 0 to 7 */
+    signal = (tuner.signal * 7) / 65535;
 
     if (!ncurses)
        return signal;
 
-    for(i = 0; i < 8; i++)
-        mvwprintw(wfreq, 3, i+1, "%s", signal>i ? "*" : " ");
+    for (i = 0; i < 8; i++)
+        mvwprintw(wfreq, 3, i + 1, "%s", signal>i ? "*" : "");
+    mvwprintw(wfreq, 3, i + 1, "|");
+
     return signal;
 }
 

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to