From a7d7ceb62b0a00ba3093df6b196669826a3c625f Mon Sep 17 00:00:00 2001 From: Manu Abraham <abraham.manu@xxxxxxxxx> Date: Thu, 17 Nov 2011 13:28:29 +0530 Subject: [PATCH 10/13] TDA10071: Query DVB frontend delivery capabilities Override default delivery system information provided by FE_GET_INFO, so that applications can enumerate delivery systems provided by the frontend. Signed-off-by: Manu Abraham <abraham.manu@xxxxxxxxx> --- drivers/media/dvb/frontends/tda10071.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/drivers/media/dvb/frontends/tda10071.c b/drivers/media/dvb/frontends/tda10071.c index 0c37434..f9abe1d 100644 --- a/drivers/media/dvb/frontends/tda10071.c +++ b/drivers/media/dvb/frontends/tda10071.c @@ -1216,6 +1216,20 @@ error: } EXPORT_SYMBOL(tda10071_attach); +static int tda10071_get_property(struct dvb_frontend *fe, struct dtv_property *p) +{ + switch (p->cmd) { + case DTV_ENUM_DELSYS: + p->u.buffer.data[0] = SYS_DVBS; + p->u.buffer.data[1] = SYS_DVBS2; + p->u.buffer.len = 2; + break; + default: + break; + } + return 0; +} + static struct dvb_frontend_ops tda10071_ops = { .info = { .name = "NXP TDA10071", @@ -1262,6 +1276,8 @@ static struct dvb_frontend_ops tda10071_ops = { .set_tone = tda10071_set_tone, .set_voltage = tda10071_set_voltage, + + .get_property = tda10071_get_property, }; MODULE_AUTHOR("Antti Palosaari <crope@xxxxxx>"); -- 1.7.1