Skip to content

Commit

Permalink
[media] STV090x: Query DVB frontend delivery capabilities
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
Manu-Abraham authored and Mauro Carvalho Chehab committed Dec 12, 2011
1 parent 61d4f9c commit 6bad3ae
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion drivers/media/dvb/frontends/stv090x.c
Original file line number Diff line number Diff line change
Expand Up @@ -4711,6 +4711,21 @@ int stv090x_set_gpio(struct dvb_frontend *fe, u8 gpio, u8 dir, u8 value,
}
EXPORT_SYMBOL(stv090x_set_gpio);

static int stv090x_get_property(struct dvb_frontend *fe, struct dtv_property *p)
{
switch (p->cmd) {
case DTV_ENUM_DELSYS:
p->u.buffer.data[0] = SYS_DSS;
p->u.buffer.data[1] = SYS_DVBS;
p->u.buffer.data[2] = SYS_DVBS2;
p->u.buffer.len = 3;
break;
default:
break;
}
return 0;
}

static struct dvb_frontend_ops stv090x_ops = {

.info = {
Expand Down Expand Up @@ -4743,7 +4758,9 @@ static struct dvb_frontend_ops stv090x_ops = {
.read_status = stv090x_read_status,
.read_ber = stv090x_read_per,
.read_signal_strength = stv090x_read_signal_strength,
.read_snr = stv090x_read_cnr
.read_snr = stv090x_read_cnr,

.get_property = stv090x_get_property,
};


Expand Down

0 comments on commit 6bad3ae

Please sign in to comment.