提交 d3cf06bb 编写于 作者: J Jemma Denson 提交者: Mauro Carvalho Chehab

[media] cx24120: Enable DVBv5 signal strength stats

Previous patch added in collection, this patch enables them by
signalling they are available.
Signed-off-by: NJemma Denson <jdenson@gmail.com>
Signed-off-by: NPatrick Boettcher <patrick.boettcher@posteo.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 9fc18f18
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册