aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/drxk_hard.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-12-17 18:36:58 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-20 08:50:37 -0500
commit0d7d0ac87b7f023a4e76e7ea7a16e904d5a49ca1 (patch)
tree570a8079ea6df00c8752e60400b2435b1843aff3 /drivers/media/dvb/frontends/drxk_hard.c
parentfd66c45dd51000ff444231a94ac15ccab8cffd3d (diff)
[media] drx-k: report the supported delivery systems
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/drxk_hard.c')
-rw-r--r--drivers/media/dvb/frontends/drxk_hard.c28
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 a2c819651933..d795898c0668 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,
6364 return 0; 6364 return 0;
6365} 6365}
6366 6366
6367static int drxk_c_get_property(struct dvb_frontend *fe, struct dtv_property *p)
6368{
6369 switch (p->cmd) {
6370 case DTV_ENUM_DELSYS:
6371 p->u.buffer.data[0] = SYS_DVBC_ANNEX_A;
6372 p->u.buffer.data[1] = SYS_DVBC_ANNEX_C;
6373 p->u.buffer.len = 2;
6374 break;
6375 default:
6376 break;
6377 }
6378 return 0;
6379}
6380static int drxk_t_get_property(struct dvb_frontend *fe, struct dtv_property *p)
6381{
6382 switch (p->cmd) {
6383 case DTV_ENUM_DELSYS:
6384 p->u.buffer.data[0] = SYS_DVBT;
6385 p->u.buffer.len = 1;
6386 break;
6387 default:
6388 break;
6389 }
6390 return 0;
6391}
6392
6367static struct dvb_frontend_ops drxk_c_ops = { 6393static struct dvb_frontend_ops drxk_c_ops = {
6368 .info = { 6394 .info = {
6369 .name = "DRXK DVB-C", 6395 .name = "DRXK DVB-C",
@@ -6382,6 +6408,7 @@ static struct dvb_frontend_ops drxk_c_ops = {
6382 6408
6383 .set_frontend = drxk_set_parameters, 6409 .set_frontend = drxk_set_parameters,
6384 .get_frontend = drxk_c_get_frontend, 6410 .get_frontend = drxk_c_get_frontend,
6411 .get_property = drxk_c_get_property,
6385 .get_tune_settings = drxk_c_get_tune_settings, 6412 .get_tune_settings = drxk_c_get_tune_settings,
6386 6413
6387 .read_status = drxk_read_status, 6414 .read_status = drxk_read_status,
@@ -6414,6 +6441,7 @@ static struct dvb_frontend_ops drxk_t_ops = {
6414 6441
6415 .set_frontend = drxk_set_parameters, 6442 .set_frontend = drxk_set_parameters,
6416 .get_frontend = drxk_t_get_frontend, 6443 .get_frontend = drxk_t_get_frontend,
6444 .get_property = drxk_t_get_property,
6417 6445
6418 .read_status = drxk_read_status, 6446 .read_status = drxk_read_status,
6419 .read_ber = drxk_read_ber, 6447 .read_ber = drxk_read_ber,