From e83bf5b01b1a5084df3c1a8f8b15c5219be618d2 Mon Sep 17 00:00:00 2001 From: Manu Abraham <abraham.manu@xxxxxxxxx> Date: Thu, 17 Nov 2011 13:40:49 +0530 Subject: [PATCH 11/13] STV0900: 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/stv0900_core.c | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/drivers/media/dvb/frontends/stv0900_core.c b/drivers/media/dvb/frontends/stv0900_core.c index 0ca316d..2b8d78c 100644 --- a/drivers/media/dvb/frontends/stv0900_core.c +++ b/drivers/media/dvb/frontends/stv0900_core.c @@ -985,7 +985,16 @@ static int stb0900_get_property(struct dvb_frontend *fe, struct dtv_property *tvp) { dprintk("%s(..)\n", __func__); - + switch (tvp->cmd) { + case DTV_ENUM_DELSYS: + tvp->u.buffer.data[0] = SYS_DSS; + tvp->u.buffer.data[1] = SYS_DVBS; + tvp->u.buffer.data[2] = SYS_DVBS2; + tvp->u.buffer.len = 3; + break; + default: + break; + } return 0; } -- 1.7.1