diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-17 23:36:58 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-20 13:50:37 (GMT) |
commit | 0d7d0ac87b7f023a4e76e7ea7a16e904d5a49ca1 (patch) | |
tree | 570a8079ea6df00c8752e60400b2435b1843aff3 /drivers/media/dvb | |
parent | fd66c45dd51000ff444231a94ac15ccab8cffd3d (diff) | |
download | linux-0d7d0ac87b7f023a4e76e7ea7a16e904d5a49ca1.tar.xz |
[media] drx-k: report the supported delivery systems
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/frontends/drxk_hard.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/drxk_hard.c b/drivers/media/dvb/frontends/drxk_hard.c index a2c8196..d795898 100644 --- a/drivers/media/dvb/frontends/drxk_hard.c +++ b/drivers/media/dvb/frontends/drxk_hard.c @@ -6364,6 +6364,32 @@ static int drxk_t_get_frontend(struct dvb_frontend *fe, return 0; } +static int drxk_c_get_property(struct dvb_frontend *fe, struct dtv_property *p) +{ + switch (p->cmd) { + case DTV_ENUM_DELSYS: + p->u.buffer.data[0] = SYS_DVBC_ANNEX_A; + p->u.buffer.data[1] = SYS_DVBC_ANNEX_C; + p->u.buffer.len = 2; + break; + default: + break; + } + return 0; +} +static int drxk_t_get_property(struct dvb_frontend *fe, struct dtv_property *p) +{ + switch (p->cmd) { + case DTV_ENUM_DELSYS: + p->u.buffer.data[0] = SYS_DVBT; + p->u.buffer.len = 1; + break; + default: + break; + } + return 0; +} + static struct dvb_frontend_ops drxk_c_ops = { .info = { .name = "DRXK DVB-C", @@ -6382,6 +6408,7 @@ static struct dvb_frontend_ops drxk_c_ops = { .set_frontend = drxk_set_parameters, .get_frontend = drxk_c_get_frontend, + .get_property = drxk_c_get_property, .get_tune_settings = drxk_c_get_tune_settings, .read_status = drxk_read_status, @@ -6414,6 +6441,7 @@ static struct dvb_frontend_ops drxk_t_ops = { .set_frontend = drxk_set_parameters, .get_frontend = drxk_t_get_frontend, + .get_property = drxk_t_get_property, .read_status = drxk_read_status, .read_ber = drxk_read_ber, |