Re: [PATCH v2 0/4] STV0367/DDB DVBv5 signal statistics

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

 



Am Wed, 21 Jun 2017 21:45:40 +0200
schrieb Daniel Scheller <d.scheller.oss@xxxxxxxxx>:

> From: Daniel Scheller <d.scheller@xxxxxxx>
> 
> This series adds DVBv5 statistics support to the new DDB codepath of the
> stv0367 demodulator driver.
> 
> The changes utilise already existing functionality (in form of register
> readouts), but wraps the reads in separate functions so the existing
> relative scale reporting can be kept as-is, while adding the v5 stats
> in dB scale where appropriate.
> 
> From my own testing: Reported values look approx. the same as those
> reported by the cxd2841er driver for both -C and -T.
> 
> Changes from v1 to v2:
>  - INTLOG10X100() macro for QAM SNR calculation removed and replaced by
>    directly utilising intlog2 plus a div
>  - factored statistics collection into *_read_status()
>  - prevent a possible division by zero (though requires ridiculously good
>    SNR to trigger)
>  - _read_status() doesn't return -EINVAL anymore if no demod state is set,
>    prevents falsely reported errors from inquiries of userspace tools

Antti, FYI: statistics inquiry now lives in read_status(), didn't see any functional differences or problems due to this, so if your're comfortable with this, this variant works fine for me. Also, INTLOG10X100 is history, this even gave an improvement of two decimals of precision in dtv_property_cache, which will definitely work for everyone - we're still no scientific pro-measurement-gear. Readout of stats are still limited to FE_HAS_LOCK though, since, as explained, this is the only bit we'll receive at the moment.

Best regards,
Daniel Scheller
-- 
https://github.com/herrnst



[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