aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb
diff options
context:
space:
mode:
authorPatrick Boettcher <pboettcher@dibcom.fr>2009-08-14 04:24:19 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:14:25 -0400
commite7b7949a95441affe937fa25f4d6d8f3df0ca271 (patch)
tree12ba9caff620d85ab4a9b4d6bc59b9f36ef2b09d /drivers/media/dvb
parentb6e760f3097501e60e76fbcb7a313d42da930c1f (diff)
V4L/DVB (12896): ISDB-T: add mapping of LAYER_ENABLED to frontend-cache
It was forgotten to map the LAYER_ENABLED ioctl to the frontend-cache and back. Signed-off-by: Patrick Boettcher <pboettcher@dibcom.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r--drivers/media/dvb/dvb-core/dvb_frontend.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index 826080416c93..3c9482660eac 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -998,6 +998,7 @@ static struct dtv_cmds_h dtv_cmds[] = {
998 _DTV_CMD(DTV_ISDBT_SB_SUBCHANNEL_ID, 1, 0), 998 _DTV_CMD(DTV_ISDBT_SB_SUBCHANNEL_ID, 1, 0),
999 _DTV_CMD(DTV_ISDBT_SB_SEGMENT_IDX, 1, 0), 999 _DTV_CMD(DTV_ISDBT_SB_SEGMENT_IDX, 1, 0),
1000 _DTV_CMD(DTV_ISDBT_SB_SEGMENT_COUNT, 1, 0), 1000 _DTV_CMD(DTV_ISDBT_SB_SEGMENT_COUNT, 1, 0),
1001 _DTV_CMD(DTV_ISDBT_LAYER_ENABLED, 1, 0),
1001 _DTV_CMD(DTV_ISDBT_LAYERA_FEC, 1, 0), 1002 _DTV_CMD(DTV_ISDBT_LAYERA_FEC, 1, 0),
1002 _DTV_CMD(DTV_ISDBT_LAYERA_MODULATION, 1, 0), 1003 _DTV_CMD(DTV_ISDBT_LAYERA_MODULATION, 1, 0),
1003 _DTV_CMD(DTV_ISDBT_LAYERA_SEGMENT_COUNT, 1, 0), 1004 _DTV_CMD(DTV_ISDBT_LAYERA_SEGMENT_COUNT, 1, 0),
@@ -1016,6 +1017,7 @@ static struct dtv_cmds_h dtv_cmds[] = {
1016 _DTV_CMD(DTV_ISDBT_SB_SUBCHANNEL_ID, 0, 0), 1017 _DTV_CMD(DTV_ISDBT_SB_SUBCHANNEL_ID, 0, 0),
1017 _DTV_CMD(DTV_ISDBT_SB_SEGMENT_IDX, 0, 0), 1018 _DTV_CMD(DTV_ISDBT_SB_SEGMENT_IDX, 0, 0),
1018 _DTV_CMD(DTV_ISDBT_SB_SEGMENT_COUNT, 0, 0), 1019 _DTV_CMD(DTV_ISDBT_SB_SEGMENT_COUNT, 0, 0),
1020 _DTV_CMD(DTV_ISDBT_LAYER_ENABLED, 0, 0),
1019 _DTV_CMD(DTV_ISDBT_LAYERA_FEC, 0, 0), 1021 _DTV_CMD(DTV_ISDBT_LAYERA_FEC, 0, 0),
1020 _DTV_CMD(DTV_ISDBT_LAYERA_MODULATION, 0, 0), 1022 _DTV_CMD(DTV_ISDBT_LAYERA_MODULATION, 0, 0),
1021 _DTV_CMD(DTV_ISDBT_LAYERA_SEGMENT_COUNT, 0, 0), 1023 _DTV_CMD(DTV_ISDBT_LAYERA_SEGMENT_COUNT, 0, 0),
@@ -1379,6 +1381,9 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
1379 case DTV_ISDBT_SB_SEGMENT_COUNT: 1381 case DTV_ISDBT_SB_SEGMENT_COUNT:
1380 tvp->u.data = fe->dtv_property_cache.isdbt_sb_segment_count; 1382 tvp->u.data = fe->dtv_property_cache.isdbt_sb_segment_count;
1381 break; 1383 break;
1384 case DTV_ISDBT_LAYER_ENABLED:
1385 tvp->u.data = fe->dtv_property_cache.isdbt_layer_enabled;
1386 break;
1382 case DTV_ISDBT_LAYERA_FEC: 1387 case DTV_ISDBT_LAYERA_FEC:
1383 tvp->u.data = fe->dtv_property_cache.layer[0].fec; 1388 tvp->u.data = fe->dtv_property_cache.layer[0].fec;
1384 break; 1389 break;
@@ -1527,6 +1532,9 @@ static int dtv_property_process_set(struct dvb_frontend *fe,
1527 case DTV_ISDBT_SB_SEGMENT_COUNT: 1532 case DTV_ISDBT_SB_SEGMENT_COUNT:
1528 fe->dtv_property_cache.isdbt_sb_segment_count = tvp->u.data; 1533 fe->dtv_property_cache.isdbt_sb_segment_count = tvp->u.data;
1529 break; 1534 break;
1535 case DTV_ISDBT_LAYER_ENABLED:
1536 fe->dtv_property_cache.isdbt_layer_enabled = tvp->u.data;
1537 break;
1530 case DTV_ISDBT_LAYERA_FEC: 1538 case DTV_ISDBT_LAYERA_FEC:
1531 fe->dtv_property_cache.layer[0].fec = tvp->u.data; 1539 fe->dtv_property_cache.layer[0].fec = tvp->u.data;
1532 break; 1540 break;