Commit bcc07275 authored by Manu Abraham's avatar Manu Abraham Committed by Mauro Carvalho Chehab

[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: default avatarManu Abraham <abraham.manu@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6bad3aeb
...@@ -985,7 +985,16 @@ static int stb0900_get_property(struct dvb_frontend *fe, ...@@ -985,7 +985,16 @@ static int stb0900_get_property(struct dvb_frontend *fe,
struct dtv_property *tvp) struct dtv_property *tvp)
{ {
dprintk("%s(..)\n", __func__); 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; return 0;
} }
......
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