Em Tue, 14 Jan 2014 17:16:10 +0200
Georgi Chorbadzhiyski <g...@unixsol.org> escreveu:

> Hi guys, I'm confused the documentation on:
> 
> http://linuxtv.org/downloads/v4l-dvb-apis/frontend_fcalls.html#FE_READ_SNR
> http://linuxtv.org/downloads/v4l-dvb-apis/frontend_fcalls.html#FE_READ_SIGNAL_STRENGTH
> 
> states that these ioctls return int16_t values but frontend.h states:
> 
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/dvb/frontend.h
> 
> #define FE_READ_SIGNAL_STRENGTH  _IOR('o', 71, __u16)
> #define FE_READ_SNR              _IOR('o', 72, __u16)
> 
> So which one is true?

Documentation is wrong. The returned values are unsigned. Would you mind send
us a patch fixing it?

Btw, the better is to use the new statistics API, when it is
available:
        
http://linuxtv.org/downloads/v4l-dvb-apis/FE_GET_SET_PROPERTY.html#frontend-stat-properties

As it properly specifies the scale of each value.

If you're working in userspace, the libdvbv5 has functions that use
the new API automatically when the DVBv5 statistics are available on
a DVB driver, via  dvb_fe_retrieve_stats():

        http://git.linuxtv.org/v4l-utils.git/blob/HEAD:/lib/include/dvb-fe.h

-- 

Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to