diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2011-11-17 05:10:49 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-12 15:04:34 -0200 |
commit | bcc072756e4467dc30e502a311b1c3adec96a0e4 (patch) | |
tree | 9e49eb9ab7819d8bc7eeb8918698d354c5bdcb92 | |
parent | 6bad3aeb8cc542b90ae62b35caca44305cd93ef5 (diff) | |
download | talos-op-linux-bcc072756e4467dc30e502a311b1c3adec96a0e4.tar.gz talos-op-linux-bcc072756e4467dc30e502a311b1c3adec96a0e4.zip |
[media] 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@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | 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 0ca316d6fffa..2b8d78c7cdb1 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; } |