Mailing List archive

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

[linux-dvb] Re: tuning problem



On Thursday 28 February 2002 06:53, you wrote:
> Hi,
>
> I took a look at the signal strenght code in the driver a while back and
> at that time there was no implementation. AFAIK the code always returned
> zero. do a "grep -5 -i strength *" in the driver dir.
>
>
> Actually there seems to be an implementation in VES1893.c. L64781.c,
> SP8870.c, and stv0299.c all return zero. When I tried it, I could not get
> any meaningful values out of the driver.


This patch will produce a signal strength figure from boards using the L64781 
chip (eg DVB-T). I don't know what the number means - I get 0x2f to 0x31 on 
my DVB-T card - though I believe a bigger number corresponds to a stronger 
signal.


--- L64781.c.old        Thu Feb 28 09:48:30 2002
+++ L64781.c    Thu Feb 28 09:53:49 2002
@@ -453,7 +453,7 @@
         case FE_READ_SIGNAL_STRENGTH:
        {
                s32 *signal=(s32 *) arg;
-               *signal = 0;
+               *signal = read_reg (client, 0x0e);
                break;
        }


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.


Home | Main Index | Thread Index