aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/ttusb-dec
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-04-04 12:25:30 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-08 05:53:15 -0400
commitfde04ab95d43e55959f12b92711b0ca4fed40637 (patch)
treeba274fcfc76b75d08907fa73b10b0a7a5a328881 /drivers/media/usb/ttusb-dec
parent9ea89e2b62c70f3986c89363818a89c8c11c96c4 (diff)
[media] demux.h: Remove duplicated enum
"enum dmx_ts_pes" and "typedef enum dmx_pes_type_t" are just the same enum declared twice, since Kernel (2.6.12). There's no reason to duplicate it there, and sparse complains about that: drivers/media/dvb-core/dmxdev.c:600:55: warning: mixing different enum types So, remove the internal define, keeping just the external one. Internally, use only "enum dmx_ts_pes", as it is too late to drop dmx_pes_type_t from the userspace API. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/ttusb-dec')
-rw-r--r--drivers/media/usb/ttusb-dec/ttusb_dec.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/usb/ttusb-dec/ttusb_dec.c b/drivers/media/usb/ttusb-dec/ttusb_dec.c
index 504c81230339..e52c3b97f304 100644
--- a/drivers/media/usb/ttusb-dec/ttusb_dec.c
+++ b/drivers/media/usb/ttusb-dec/ttusb_dec.c
@@ -951,34 +951,34 @@ static int ttusb_dec_start_ts_feed(struct dvb_demux_feed *dvbdmxfeed)
951 951
952 switch (dvbdmxfeed->pes_type) { 952 switch (dvbdmxfeed->pes_type) {
953 953
954 case DMX_TS_PES_VIDEO: 954 case DMX_PES_VIDEO:
955 dprintk(" pes_type: DMX_TS_PES_VIDEO\n"); 955 dprintk(" pes_type: DMX_PES_VIDEO\n");
956 dec->pid[DMX_PES_PCR] = dvbdmxfeed->pid; 956 dec->pid[DMX_PES_PCR] = dvbdmxfeed->pid;
957 dec->pid[DMX_PES_VIDEO] = dvbdmxfeed->pid; 957 dec->pid[DMX_PES_VIDEO] = dvbdmxfeed->pid;
958 dec->video_filter = dvbdmxfeed->filter; 958 dec->video_filter = dvbdmxfeed->filter;
959 ttusb_dec_set_pids(dec); 959 ttusb_dec_set_pids(dec);
960 break; 960 break;
961 961
962 case DMX_TS_PES_AUDIO: 962 case DMX_PES_AUDIO:
963 dprintk(" pes_type: DMX_TS_PES_AUDIO\n"); 963 dprintk(" pes_type: DMX_PES_AUDIO\n");
964 dec->pid[DMX_PES_AUDIO] = dvbdmxfeed->pid; 964 dec->pid[DMX_PES_AUDIO] = dvbdmxfeed->pid;
965 dec->audio_filter = dvbdmxfeed->filter; 965 dec->audio_filter = dvbdmxfeed->filter;
966 ttusb_dec_set_pids(dec); 966 ttusb_dec_set_pids(dec);
967 break; 967 break;
968 968
969 case DMX_TS_PES_TELETEXT: 969 case DMX_PES_TELETEXT:
970 dec->pid[DMX_PES_TELETEXT] = dvbdmxfeed->pid; 970 dec->pid[DMX_PES_TELETEXT] = dvbdmxfeed->pid;
971 dprintk(" pes_type: DMX_TS_PES_TELETEXT(not supported)\n"); 971 dprintk(" pes_type: DMX_PES_TELETEXT(not supported)\n");
972 return -ENOSYS; 972 return -ENOSYS;
973 973
974 case DMX_TS_PES_PCR: 974 case DMX_PES_PCR:
975 dprintk(" pes_type: DMX_TS_PES_PCR\n"); 975 dprintk(" pes_type: DMX_PES_PCR\n");
976 dec->pid[DMX_PES_PCR] = dvbdmxfeed->pid; 976 dec->pid[DMX_PES_PCR] = dvbdmxfeed->pid;
977 ttusb_dec_set_pids(dec); 977 ttusb_dec_set_pids(dec);
978 break; 978 break;
979 979
980 case DMX_TS_PES_OTHER: 980 case DMX_PES_OTHER:
981 dprintk(" pes_type: DMX_TS_PES_OTHER(not supported)\n"); 981 dprintk(" pes_type: DMX_PES_OTHER(not supported)\n");
982 return -ENOSYS; 982 return -ENOSYS;
983 983
984 default: 984 default: