diff options
-rw-r--r-- | drivers/media/dvb/dvb-core/dmxdev.c | 9 | ||||
-rw-r--r-- | drivers/media/dvb/dvb-core/dmxdev.h | 2 |
2 files changed, 3 insertions, 8 deletions
diff --git a/drivers/media/dvb/dvb-core/dmxdev.c b/drivers/media/dvb/dvb-core/dmxdev.c index 4c52c8521bd8..ab1aeb84c681 100644 --- a/drivers/media/dvb/dvb-core/dmxdev.c +++ b/drivers/media/dvb/dvb-core/dmxdev.c | |||
@@ -454,7 +454,7 @@ static int dvb_dmxdev_feed_restart(struct dmxdev_filter *filter) | |||
454 | for (i=0; i<dmxdev->filternum; i++) | 454 | for (i=0; i<dmxdev->filternum; i++) |
455 | if (dmxdev->filter[i].state>=DMXDEV_STATE_GO && | 455 | if (dmxdev->filter[i].state>=DMXDEV_STATE_GO && |
456 | dmxdev->filter[i].type==DMXDEV_TYPE_SEC && | 456 | dmxdev->filter[i].type==DMXDEV_TYPE_SEC && |
457 | dmxdev->filter[i].pid==pid) { | 457 | dmxdev->filter[i].params.sec.pid==pid) { |
458 | dvb_dmxdev_feed_start(&dmxdev->filter[i]); | 458 | dvb_dmxdev_feed_start(&dmxdev->filter[i]); |
459 | return 0; | 459 | return 0; |
460 | } | 460 | } |
@@ -505,7 +505,6 @@ static inline int dvb_dmxdev_filter_reset(struct dmxdev_filter *dmxdevfilter) | |||
505 | return 0; | 505 | return 0; |
506 | 506 | ||
507 | dmxdevfilter->type=DMXDEV_TYPE_NONE; | 507 | dmxdevfilter->type=DMXDEV_TYPE_NONE; |
508 | dmxdevfilter->pid=0xffff; | ||
509 | dvb_dmxdev_filter_state_set(dmxdevfilter, DMXDEV_STATE_ALLOCATED); | 508 | dvb_dmxdev_filter_state_set(dmxdevfilter, DMXDEV_STATE_ALLOCATED); |
510 | return 0; | 509 | return 0; |
511 | } | 510 | } |
@@ -546,8 +545,8 @@ static int dvb_dmxdev_filter_start(struct dmxdev_filter *filter) | |||
546 | /* find active filter/feed with same PID */ | 545 | /* find active filter/feed with same PID */ |
547 | for (i=0; i<dmxdev->filternum; i++) { | 546 | for (i=0; i<dmxdev->filternum; i++) { |
548 | if (dmxdev->filter[i].state >= DMXDEV_STATE_GO && | 547 | if (dmxdev->filter[i].state >= DMXDEV_STATE_GO && |
549 | dmxdev->filter[i].pid == para->pid && | 548 | dmxdev->filter[i].type == DMXDEV_TYPE_SEC && |
550 | dmxdev->filter[i].type == DMXDEV_TYPE_SEC) { | 549 | dmxdev->filter[i].params.sec.pid == para->pid) { |
551 | *secfeed = dmxdev->filter[i].feed.sec; | 550 | *secfeed = dmxdev->filter[i].feed.sec; |
552 | break; | 551 | break; |
553 | } | 552 | } |
@@ -756,7 +755,6 @@ static int dvb_dmxdev_filter_set(struct dmxdev *dmxdev, | |||
756 | dvb_dmxdev_filter_stop(dmxdevfilter); | 755 | dvb_dmxdev_filter_stop(dmxdevfilter); |
757 | 756 | ||
758 | dmxdevfilter->type=DMXDEV_TYPE_SEC; | 757 | dmxdevfilter->type=DMXDEV_TYPE_SEC; |
759 | dmxdevfilter->pid=params->pid; | ||
760 | memcpy(&dmxdevfilter->params.sec, | 758 | memcpy(&dmxdevfilter->params.sec, |
761 | params, sizeof(struct dmx_sct_filter_params)); | 759 | params, sizeof(struct dmx_sct_filter_params)); |
762 | invert_mode(&dmxdevfilter->params.sec.filter); | 760 | invert_mode(&dmxdevfilter->params.sec.filter); |
@@ -778,7 +776,6 @@ static int dvb_dmxdev_pes_filter_set(struct dmxdev *dmxdev, | |||
778 | return -EINVAL; | 776 | return -EINVAL; |
779 | 777 | ||
780 | dmxdevfilter->type=DMXDEV_TYPE_PES; | 778 | dmxdevfilter->type=DMXDEV_TYPE_PES; |
781 | dmxdevfilter->pid=params->pid; | ||
782 | memcpy(&dmxdevfilter->params, params, sizeof(struct dmx_pes_filter_params)); | 779 | memcpy(&dmxdevfilter->params, params, sizeof(struct dmx_pes_filter_params)); |
783 | 780 | ||
784 | dvb_dmxdev_filter_state_set(dmxdevfilter, DMXDEV_STATE_SET); | 781 | dvb_dmxdev_filter_state_set(dmxdevfilter, DMXDEV_STATE_SET); |
diff --git a/drivers/media/dvb/dvb-core/dmxdev.h b/drivers/media/dvb/dvb-core/dmxdev.h index fafdf476b23a..4cb879435fdb 100644 --- a/drivers/media/dvb/dvb-core/dmxdev.h +++ b/drivers/media/dvb/dvb-core/dmxdev.h | |||
@@ -89,8 +89,6 @@ struct dmxdev_filter { | |||
89 | struct timer_list timer; | 89 | struct timer_list timer; |
90 | int todo; | 90 | int todo; |
91 | u8 secheader[3]; | 91 | u8 secheader[3]; |
92 | |||
93 | u16 pid; | ||
94 | }; | 92 | }; |
95 | 93 | ||
96 | 94 | ||