Commit b2a29b57 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] tda10071: convert set_fontend to use DVBv5 parameters

Instead of using dvb_frontend_parameters struct, that were
designed for a subset of the supported standards, use the DVBv5
cache information.

Also, fill the supported delivery systems at dvb_frontend_ops
struct.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 787d92e1
...@@ -636,8 +636,7 @@ static int tda10071_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks) ...@@ -636,8 +636,7 @@ static int tda10071_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
return ret; return ret;
} }
static int tda10071_set_frontend(struct dvb_frontend *fe, static int tda10071_set_frontend(struct dvb_frontend *fe)
struct dvb_frontend_parameters *params)
{ {
struct tda10071_priv *priv = fe->demodulator_priv; struct tda10071_priv *priv = fe->demodulator_priv;
struct tda10071_cmd cmd; struct tda10071_cmd cmd;
...@@ -778,7 +777,7 @@ static int tda10071_set_frontend(struct dvb_frontend *fe, ...@@ -778,7 +777,7 @@ static int tda10071_set_frontend(struct dvb_frontend *fe,
} }
static int tda10071_get_frontend(struct dvb_frontend *fe, static int tda10071_get_frontend(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p) struct dtv_frontend_properties *p)
{ {
struct tda10071_priv *priv = fe->demodulator_priv; struct tda10071_priv *priv = fe->demodulator_priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
...@@ -1217,6 +1216,7 @@ struct dvb_frontend *tda10071_attach(const struct tda10071_config *config, ...@@ -1217,6 +1216,7 @@ struct dvb_frontend *tda10071_attach(const struct tda10071_config *config,
EXPORT_SYMBOL(tda10071_attach); EXPORT_SYMBOL(tda10071_attach);
static struct dvb_frontend_ops tda10071_ops = { static struct dvb_frontend_ops tda10071_ops = {
.delsys = { SYS_DVBT, SYS_DVBT2 },
.info = { .info = {
.name = "NXP TDA10071", .name = "NXP TDA10071",
.type = FE_QPSK, .type = FE_QPSK,
...@@ -1247,8 +1247,8 @@ static struct dvb_frontend_ops tda10071_ops = { ...@@ -1247,8 +1247,8 @@ static struct dvb_frontend_ops tda10071_ops = {
.init = tda10071_init, .init = tda10071_init,
.sleep = tda10071_sleep, .sleep = tda10071_sleep,
.set_frontend_legacy = tda10071_set_frontend, .set_frontend = tda10071_set_frontend,
.get_frontend_legacy = tda10071_get_frontend, .get_frontend = tda10071_get_frontend,
.read_status = tda10071_read_status, .read_status = tda10071_read_status,
.read_snr = tda10071_read_snr, .read_snr = tda10071_read_snr,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment