[dvblast-devel] Simple change for better human reading ...
Thomas Kernen
tkernen at deckpoint.ch
Fri Mar 2 13:08:31 CET 2012
Unless mistaken I believe there was a long list of commits in LinuxTV
drivers a couple of months or so ago to start fixing this (linked to the
move from DVBv3 to DVBv5 API). But I don't think we can claim that there
will be consistency across all chipsets and implementations.
Thomas
On 3/2/12 1:00 PM, Doychin Dokov wrote:
> How are we sure that these parameters are calculated this way for all
> devices?
>
> Remember, some of them even have options for different report modes in
> their kernel modules....
>
> На 02 март 2012, 13:54, Kompan Kolia <kompan at yandex.ru
> <mailto:kompan at yandex.ru>> написа:
>
> Please, change dvb.c for better human reading of some parameters..
>
> 388 if( ioctl( i_frontend, FE_READ_SIGNAL_STRENGTH,
> &i_value ) >= 0 )
> 389 msg_Dbg( NULL, "- Signal strength: %d",
> i_value );
> 390 if( ioctl( i_frontend, FE_READ_SNR, &i_value ) >= 0 )
> 391 msg_Dbg( NULL, "- SNR: %d", i_value );
>
> and old output
> SNR(Signal/Noise Ratio): 166
> BER (Bit Error Rate): 0
> Signal Strength: 376
>
>
> Like this:
>
> 388 if( ioctl( i_frontend, FE_READ_SIGNAL_STRENGTH,
> &i_value ) >= 0 )
> 389 msg_Dbg( NULL, "- Signal Strength:
> %ld (%4.1f\%%)\n", (long)fe_signal_strength,
> 100.0*fe_signal_strength/65536)", i_value );
> 390 if( ioctl( i_frontend, FE_READ_SNR, &i_value ) >= 0 )
> 391 msg_Dbg( NULL, "- SNR(Signal/Noise Ratio):
> %ld (%4.1f\%%) \n", (long)fe_snr,100.0*fe_snr/65536)", i_value );
>
> and new output
> SNR(Signal/Noise Ratio): 166 ( 0.3%)
> BER (Bit Error Rate): 0
> Signal Strength: 376 (0.6%)
> _______________________________________________
> dvblast-devel mailing list
> dvblast-devel at videolan.org <mailto:dvblast-devel at videolan.org>
> http://mailman.videolan.org/listinfo/dvblast-devel
>
>
>
>
> _______________________________________________
> dvblast-devel mailing list
> dvblast-devel at videolan.org
> http://mailman.videolan.org/listinfo/dvblast-devel
More information about the dvblast-devel
mailing list