From be644cd7dc586621338a9c4c41567cc351723c05 Mon Sep 17 00:00:00 2001 From: Manu Abraham <abraham.manu@xxxxxxxxx> Date: Thu, 17 Nov 2011 13:02:42 +0530 Subject: [PATCH 09/13] DS3000: 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/ds3000.c | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb/frontends/ds3000.c b/drivers/media/dvb/frontends/ds3000.c index 90bf573..2fc76c9 100644 --- a/drivers/media/dvb/frontends/ds3000.c +++ b/drivers/media/dvb/frontends/ds3000.c @@ -941,10 +941,18 @@ static int ds3000_set_property(struct dvb_frontend *fe, return 0; } -static int ds3000_get_property(struct dvb_frontend *fe, - struct dtv_property *tvp) +static int ds3000_get_property(struct dvb_frontend *fe, struct dtv_property *p) { dprintk("%s(..)\n", __func__); + 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; } -- 1.7.1