projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9fc18f1
)
[media] cx24120: Enable DVBv5 signal strength stats
author
Jemma Denson
<
[email protected]
>
Tue, 5 May 2015 20:10:13 +0000
(17:10 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Mon, 18 May 2015 19:36:57 +0000
(16:36 -0300)
Previous patch added in collection, this patch enables them by
signalling they are available.
Signed-off-by: Jemma Denson <
[email protected]
>
Signed-off-by: Patrick Boettcher <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/dvb-frontends/cx24120.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb-frontends/cx24120.c
b/drivers/media/dvb-frontends/cx24120.c
index ff16611b5eb40750f70f739d04d02d0851890d46..57634c618d63d6e3a9beeb2f7ea4deb9d0921ec1 100644
(file)
--- 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;
}