diff options
author | Jemma Denson <jdenson@gmail.com> | 2015-05-05 22:10:13 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-18 21:36:57 +0200 |
commit | d3cf06bbe3088e0b6ede1cc0a91ff9b60d837be9 (patch) | |
tree | 4371e7d72c97d2ae09a600f1bada2898a0e77105 /drivers/media | |
parent | [media] cx24120: Add DVBv5 signal strength stats (diff) | |
download | linux-d3cf06bbe3088e0b6ede1cc0a91ff9b60d837be9.tar.xz linux-d3cf06bbe3088e0b6ede1cc0a91ff9b60d837be9.zip |
[media] cx24120: Enable DVBv5 signal strength stats
Previous patch added in collection, this patch enables them by
signalling they are available.
Signed-off-by: Jemma Denson <jdenson@gmail.com>
Signed-off-by: Patrick Boettcher <patrick.boettcher@posteo.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb-frontends/cx24120.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/cx24120.c b/drivers/media/dvb-frontends/cx24120.c index ff16611b5eb4..57634c618d63 100644 --- a/drivers/media/dvb-frontends/cx24120.c +++ b/drivers/media/dvb-frontends/cx24120.c @@ -1176,6 +1176,7 @@ static int cx24120_set_vco(struct cx24120_state *state) int cx24120_init(struct dvb_frontend *fe) { const struct firmware *fw; + struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct cx24120_state *state = fe->demodulator_priv; struct cx24120_cmd cmd; u8 ret, ret_EA, reg1; @@ -1361,6 +1362,10 @@ int cx24120_init(struct dvb_frontend *fe) } info("FW version %i.%i.%i.%i\n", vers[0], vers[1], vers[2], vers[3]); + /* init stats here in order signal app which stats are supported */ + c->strength.len = 1; + c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; + state->cold_init = 1; return 0; } |