Moikka
I have feeling DVBv5 API is aimed to transfer data via property cached. I haven't done much driver for DVBv5 statistics, but recently I implemented CNR (DVBv5 stats) to Si2168 driver and it just writes all the values directly to property cache. I expect RF strength (RSSI) is just similar.

Antti



On 08/27/2014 06:29 PM, tsk...@gmail.com wrote:
From: Akihiro Tsukada <tsk...@gmail.com>

fe->ops.tuner_ops.get_rf_strength() reports its result in u16,
while in DVB APIv5 it should be reported in s64 and by 0.001dBm.

Signed-off-by: Akihiro Tsukada <tsk...@gmail.com>
---
  drivers/media/dvb-core/dvb_frontend.h | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/drivers/media/dvb-core/dvb_frontend.h 
b/drivers/media/dvb-core/dvb_frontend.h
index 816269e..f6222b5 100644
--- a/drivers/media/dvb-core/dvb_frontend.h
+++ b/drivers/media/dvb-core/dvb_frontend.h
@@ -222,6 +222,8 @@ struct dvb_tuner_ops {
  #define TUNER_STATUS_STEREO 2
        int (*get_status)(struct dvb_frontend *fe, u32 *status);
        int (*get_rf_strength)(struct dvb_frontend *fe, u16 *strength);
+       /** get signal strengh in 0.001dBm, in accordance with APIv5 */
+       int (*get_rf_strength_dbm)(struct dvb_frontend *fe, s64 *strength);
        int (*get_afc)(struct dvb_frontend *fe, s32 *afc);

        /** These are provided separately from set_params in order to 
facilitate silicon


--
http://palosaari.fi/
--
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