aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-17 04:02:38 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-26 08:41:36 -0400
commitff82b2118ede450e18f96226d96a1757dc0b52af (patch)
treea1e8361af98b4f2eec0c7207c6bec70b87e77bc8
parent633c98e52a64ac8548b5d27dca1497cd4f0a6d4c (diff)
[media] cx18/ivtv: Remove usage of V4L2_BUF_TYPE_PRIVATE
V4L2_BUF_TYPE_PRIVATE was used in these driver for internal purposes. It turned out though that it wasn't used at all, so it could be removed. I know it was used in the past, but clearly later changes made this obsolete. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/pci/cx18/cx18-streams.c15
-rw-r--r--drivers/media/pci/ivtv/ivtv-streams.c19
2 files changed, 16 insertions, 18 deletions
diff --git a/drivers/media/pci/cx18/cx18-streams.c b/drivers/media/pci/cx18/cx18-streams.c
index 9d598ab88615..72af9b5c2d7d 100644
--- a/drivers/media/pci/cx18/cx18-streams.c
+++ b/drivers/media/pci/cx18/cx18-streams.c
@@ -58,42 +58,41 @@ static struct {
58 int vfl_type; 58 int vfl_type;
59 int num_offset; 59 int num_offset;
60 int dma; 60 int dma;
61 enum v4l2_buf_type buf_type;
62} cx18_stream_info[] = { 61} cx18_stream_info[] = {
63 { /* CX18_ENC_STREAM_TYPE_MPG */ 62 { /* CX18_ENC_STREAM_TYPE_MPG */
64 "encoder MPEG", 63 "encoder MPEG",
65 VFL_TYPE_GRABBER, 0, 64 VFL_TYPE_GRABBER, 0,
66 PCI_DMA_FROMDEVICE, V4L2_BUF_TYPE_VIDEO_CAPTURE, 65 PCI_DMA_FROMDEVICE,
67 }, 66 },
68 { /* CX18_ENC_STREAM_TYPE_TS */ 67 { /* CX18_ENC_STREAM_TYPE_TS */
69 "TS", 68 "TS",
70 VFL_TYPE_GRABBER, -1, 69 VFL_TYPE_GRABBER, -1,
71 PCI_DMA_FROMDEVICE, V4L2_BUF_TYPE_VIDEO_CAPTURE, 70 PCI_DMA_FROMDEVICE,
72 }, 71 },
73 { /* CX18_ENC_STREAM_TYPE_YUV */ 72 { /* CX18_ENC_STREAM_TYPE_YUV */
74 "encoder YUV", 73 "encoder YUV",
75 VFL_TYPE_GRABBER, CX18_V4L2_ENC_YUV_OFFSET, 74 VFL_TYPE_GRABBER, CX18_V4L2_ENC_YUV_OFFSET,
76 PCI_DMA_FROMDEVICE, V4L2_BUF_TYPE_VIDEO_CAPTURE, 75 PCI_DMA_FROMDEVICE,
77 }, 76 },
78 { /* CX18_ENC_STREAM_TYPE_VBI */ 77 { /* CX18_ENC_STREAM_TYPE_VBI */
79 "encoder VBI", 78 "encoder VBI",
80 VFL_TYPE_VBI, 0, 79 VFL_TYPE_VBI, 0,
81 PCI_DMA_FROMDEVICE, V4L2_BUF_TYPE_VBI_CAPTURE, 80 PCI_DMA_FROMDEVICE,
82 }, 81 },
83 { /* CX18_ENC_STREAM_TYPE_PCM */ 82 { /* CX18_ENC_STREAM_TYPE_PCM */
84 "encoder PCM audio", 83 "encoder PCM audio",
85 VFL_TYPE_GRABBER, CX18_V4L2_ENC_PCM_OFFSET, 84 VFL_TYPE_GRABBER, CX18_V4L2_ENC_PCM_OFFSET,
86 PCI_DMA_FROMDEVICE, V4L2_BUF_TYPE_PRIVATE, 85 PCI_DMA_FROMDEVICE,
87 }, 86 },
88 { /* CX18_ENC_STREAM_TYPE_IDX */ 87 { /* CX18_ENC_STREAM_TYPE_IDX */
89 "encoder IDX", 88 "encoder IDX",
90 VFL_TYPE_GRABBER, -1, 89 VFL_TYPE_GRABBER, -1,
91 PCI_DMA_FROMDEVICE, V4L2_BUF_TYPE_VIDEO_CAPTURE, 90 PCI_DMA_FROMDEVICE,
92 }, 91 },
93 { /* CX18_ENC_STREAM_TYPE_RAD */ 92 { /* CX18_ENC_STREAM_TYPE_RAD */
94 "encoder radio", 93 "encoder radio",
95 VFL_TYPE_RADIO, 0, 94 VFL_TYPE_RADIO, 0,
96 PCI_DMA_NONE, V4L2_BUF_TYPE_PRIVATE, 95 PCI_DMA_NONE,
97 }, 96 },
98}; 97};
99 98
diff --git a/drivers/media/pci/ivtv/ivtv-streams.c b/drivers/media/pci/ivtv/ivtv-streams.c
index ea6135203f58..0ff264e0e0f6 100644
--- a/drivers/media/pci/ivtv/ivtv-streams.c
+++ b/drivers/media/pci/ivtv/ivtv-streams.c
@@ -77,14 +77,13 @@ static struct {
77 int vfl_type; 77 int vfl_type;
78 int num_offset; 78 int num_offset;
79 int dma, pio; 79 int dma, pio;
80 enum v4l2_buf_type buf_type;
81 u32 v4l2_caps; 80 u32 v4l2_caps;
82 const struct v4l2_file_operations *fops; 81 const struct v4l2_file_operations *fops;
83} ivtv_stream_info[] = { 82} ivtv_stream_info[] = {
84 { /* IVTV_ENC_STREAM_TYPE_MPG */ 83 { /* IVTV_ENC_STREAM_TYPE_MPG */
85 "encoder MPG", 84 "encoder MPG",
86 VFL_TYPE_GRABBER, 0, 85 VFL_TYPE_GRABBER, 0,
87 PCI_DMA_FROMDEVICE, 0, V4L2_BUF_TYPE_VIDEO_CAPTURE, 86 PCI_DMA_FROMDEVICE, 0,
88 V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_TUNER | 87 V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_TUNER |
89 V4L2_CAP_AUDIO | V4L2_CAP_READWRITE, 88 V4L2_CAP_AUDIO | V4L2_CAP_READWRITE,
90 &ivtv_v4l2_enc_fops 89 &ivtv_v4l2_enc_fops
@@ -92,7 +91,7 @@ static struct {
92 { /* IVTV_ENC_STREAM_TYPE_YUV */ 91 { /* IVTV_ENC_STREAM_TYPE_YUV */
93 "encoder YUV", 92 "encoder YUV",
94 VFL_TYPE_GRABBER, IVTV_V4L2_ENC_YUV_OFFSET, 93 VFL_TYPE_GRABBER, IVTV_V4L2_ENC_YUV_OFFSET,
95 PCI_DMA_FROMDEVICE, 0, V4L2_BUF_TYPE_VIDEO_CAPTURE, 94 PCI_DMA_FROMDEVICE, 0,
96 V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_TUNER | 95 V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_TUNER |
97 V4L2_CAP_AUDIO | V4L2_CAP_READWRITE, 96 V4L2_CAP_AUDIO | V4L2_CAP_READWRITE,
98 &ivtv_v4l2_enc_fops 97 &ivtv_v4l2_enc_fops
@@ -100,7 +99,7 @@ static struct {
100 { /* IVTV_ENC_STREAM_TYPE_VBI */ 99 { /* IVTV_ENC_STREAM_TYPE_VBI */
101 "encoder VBI", 100 "encoder VBI",
102 VFL_TYPE_VBI, 0, 101 VFL_TYPE_VBI, 0,
103 PCI_DMA_FROMDEVICE, 0, V4L2_BUF_TYPE_VBI_CAPTURE, 102 PCI_DMA_FROMDEVICE, 0,
104 V4L2_CAP_VBI_CAPTURE | V4L2_CAP_SLICED_VBI_CAPTURE | V4L2_CAP_TUNER | 103 V4L2_CAP_VBI_CAPTURE | V4L2_CAP_SLICED_VBI_CAPTURE | V4L2_CAP_TUNER |
105 V4L2_CAP_AUDIO | V4L2_CAP_READWRITE, 104 V4L2_CAP_AUDIO | V4L2_CAP_READWRITE,
106 &ivtv_v4l2_enc_fops 105 &ivtv_v4l2_enc_fops
@@ -108,42 +107,42 @@ static struct {
108 { /* IVTV_ENC_STREAM_TYPE_PCM */ 107 { /* IVTV_ENC_STREAM_TYPE_PCM */
109 "encoder PCM", 108 "encoder PCM",
110 VFL_TYPE_GRABBER, IVTV_V4L2_ENC_PCM_OFFSET, 109 VFL_TYPE_GRABBER, IVTV_V4L2_ENC_PCM_OFFSET,
111 PCI_DMA_FROMDEVICE, 0, V4L2_BUF_TYPE_PRIVATE, 110 PCI_DMA_FROMDEVICE, 0,
112 V4L2_CAP_TUNER | V4L2_CAP_AUDIO | V4L2_CAP_READWRITE, 111 V4L2_CAP_TUNER | V4L2_CAP_AUDIO | V4L2_CAP_READWRITE,
113 &ivtv_v4l2_enc_fops 112 &ivtv_v4l2_enc_fops
114 }, 113 },
115 { /* IVTV_ENC_STREAM_TYPE_RAD */ 114 { /* IVTV_ENC_STREAM_TYPE_RAD */
116 "encoder radio", 115 "encoder radio",
117 VFL_TYPE_RADIO, 0, 116 VFL_TYPE_RADIO, 0,
118 PCI_DMA_NONE, 1, V4L2_BUF_TYPE_PRIVATE, 117 PCI_DMA_NONE, 1,
119 V4L2_CAP_RADIO | V4L2_CAP_TUNER, 118 V4L2_CAP_RADIO | V4L2_CAP_TUNER,
120 &ivtv_v4l2_enc_fops 119 &ivtv_v4l2_enc_fops
121 }, 120 },
122 { /* IVTV_DEC_STREAM_TYPE_MPG */ 121 { /* IVTV_DEC_STREAM_TYPE_MPG */
123 "decoder MPG", 122 "decoder MPG",
124 VFL_TYPE_GRABBER, IVTV_V4L2_DEC_MPG_OFFSET, 123 VFL_TYPE_GRABBER, IVTV_V4L2_DEC_MPG_OFFSET,
125 PCI_DMA_TODEVICE, 0, V4L2_BUF_TYPE_VIDEO_OUTPUT, 124 PCI_DMA_TODEVICE, 0,
126 V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_AUDIO | V4L2_CAP_READWRITE, 125 V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_AUDIO | V4L2_CAP_READWRITE,
127 &ivtv_v4l2_dec_fops 126 &ivtv_v4l2_dec_fops
128 }, 127 },
129 { /* IVTV_DEC_STREAM_TYPE_VBI */ 128 { /* IVTV_DEC_STREAM_TYPE_VBI */
130 "decoder VBI", 129 "decoder VBI",
131 VFL_TYPE_VBI, IVTV_V4L2_DEC_VBI_OFFSET, 130 VFL_TYPE_VBI, IVTV_V4L2_DEC_VBI_OFFSET,
132 PCI_DMA_NONE, 1, V4L2_BUF_TYPE_VBI_CAPTURE, 131 PCI_DMA_NONE, 1,
133 V4L2_CAP_SLICED_VBI_CAPTURE | V4L2_CAP_READWRITE, 132 V4L2_CAP_SLICED_VBI_CAPTURE | V4L2_CAP_READWRITE,
134 &ivtv_v4l2_enc_fops 133 &ivtv_v4l2_enc_fops
135 }, 134 },
136 { /* IVTV_DEC_STREAM_TYPE_VOUT */ 135 { /* IVTV_DEC_STREAM_TYPE_VOUT */
137 "decoder VOUT", 136 "decoder VOUT",
138 VFL_TYPE_VBI, IVTV_V4L2_DEC_VOUT_OFFSET, 137 VFL_TYPE_VBI, IVTV_V4L2_DEC_VOUT_OFFSET,
139 PCI_DMA_NONE, 1, V4L2_BUF_TYPE_VBI_OUTPUT, 138 PCI_DMA_NONE, 1,
140 V4L2_CAP_SLICED_VBI_OUTPUT | V4L2_CAP_AUDIO | V4L2_CAP_READWRITE, 139 V4L2_CAP_SLICED_VBI_OUTPUT | V4L2_CAP_AUDIO | V4L2_CAP_READWRITE,
141 &ivtv_v4l2_dec_fops 140 &ivtv_v4l2_dec_fops
142 }, 141 },
143 { /* IVTV_DEC_STREAM_TYPE_YUV */ 142 { /* IVTV_DEC_STREAM_TYPE_YUV */
144 "decoder YUV", 143 "decoder YUV",
145 VFL_TYPE_GRABBER, IVTV_V4L2_DEC_YUV_OFFSET, 144 VFL_TYPE_GRABBER, IVTV_V4L2_DEC_YUV_OFFSET,
146 PCI_DMA_TODEVICE, 0, V4L2_BUF_TYPE_VIDEO_OUTPUT, 145 PCI_DMA_TODEVICE, 0,
147 V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_AUDIO | V4L2_CAP_READWRITE, 146 V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_AUDIO | V4L2_CAP_READWRITE,
148 &ivtv_v4l2_dec_fops 147 &ivtv_v4l2_dec_fops
149 } 148 }