Commit 59d3cc19 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] af9013: convert get|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 f311f68a
...@@ -572,8 +572,7 @@ static int af9013_get_tune_settings(struct dvb_frontend *fe, ...@@ -572,8 +572,7 @@ static int af9013_get_tune_settings(struct dvb_frontend *fe,
return 0; return 0;
} }
static int af9013_set_frontend(struct dvb_frontend *fe, static int af9013_set_frontend(struct dvb_frontend *fe)
struct dvb_frontend_parameters *p)
{ {
struct af9013_state *state = fe->demodulator_priv; struct af9013_state *state = fe->demodulator_priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
...@@ -847,10 +846,9 @@ static int af9013_set_frontend(struct dvb_frontend *fe, ...@@ -847,10 +846,9 @@ static int af9013_set_frontend(struct dvb_frontend *fe,
} }
static int af9013_get_frontend(struct dvb_frontend *fe, static int af9013_get_frontend(struct dvb_frontend *fe,
struct dvb_frontend_parameters *p) struct dtv_frontend_properties *c)
{ {
struct af9013_state *state = fe->demodulator_priv; struct af9013_state *state = fe->demodulator_priv;
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
int ret; int ret;
u8 buf[3]; u8 buf[3];
...@@ -1482,6 +1480,7 @@ struct dvb_frontend *af9013_attach(const struct af9013_config *config, ...@@ -1482,6 +1480,7 @@ struct dvb_frontend *af9013_attach(const struct af9013_config *config,
EXPORT_SYMBOL(af9013_attach); EXPORT_SYMBOL(af9013_attach);
static struct dvb_frontend_ops af9013_ops = { static struct dvb_frontend_ops af9013_ops = {
.delsys = { SYS_DVBT },
.info = { .info = {
.name = "Afatech AF9013", .name = "Afatech AF9013",
.type = FE_OFDM, .type = FE_OFDM,
...@@ -1512,8 +1511,8 @@ static struct dvb_frontend_ops af9013_ops = { ...@@ -1512,8 +1511,8 @@ static struct dvb_frontend_ops af9013_ops = {
.sleep = af9013_sleep, .sleep = af9013_sleep,
.get_tune_settings = af9013_get_tune_settings, .get_tune_settings = af9013_get_tune_settings,
.set_frontend_legacy = af9013_set_frontend, .set_frontend = af9013_set_frontend,
.get_frontend_legacy = af9013_get_frontend, .get_frontend = af9013_get_frontend,
.read_status = af9013_read_status, .read_status = af9013_read_status,
.read_snr = af9013_read_snr, .read_snr = af9013_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