aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci/cx25821/cx25821.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2013-04-13 04:30:48 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-04-16 16:56:19 -0400
commitffd3c2330473f6a07f36bf3bd64f7a1158bdd759 (patch)
tree561e92d16d04d3f0cadf2a35a486859fe80e4119 /drivers/media/pci/cx25821/cx25821.h
parent170bd5330383ce62127ef5b6eeeab9afebd7b838 (diff)
[media] cx25821: remove bogus radio/vbi/'video-ioctl' support
This device does not support radio or vbi, so remove anything referring to that. In addition, the driver created an 'video ioctl' node, which was unused and was effectively identical to the first video node. This bogus video node is now removed, leaving us with 8 video capture nodes and 2 video output nodes. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/cx25821/cx25821.h')
-rw-r--r--drivers/media/pci/cx25821/cx25821.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/media/pci/cx25821/cx25821.h b/drivers/media/pci/cx25821/cx25821.h
index 85693cdf0ee1..04c3cb0b6f42 100644
--- a/drivers/media/pci/cx25821/cx25821.h
+++ b/drivers/media/pci/cx25821/cx25821.h
@@ -80,7 +80,6 @@
80#define RESOURCE_VIDEO9 512 80#define RESOURCE_VIDEO9 512
81#define RESOURCE_VIDEO10 1024 81#define RESOURCE_VIDEO10 1024
82#define RESOURCE_VIDEO11 2048 82#define RESOURCE_VIDEO11 2048
83#define RESOURCE_VIDEO_IOCTL 4096
84 83
85#define BUFFER_TIMEOUT (HZ) /* 0.5 seconds */ 84#define BUFFER_TIMEOUT (HZ) /* 0.5 seconds */
86 85
@@ -125,7 +124,6 @@ struct cx25821_tvnorm {
125struct cx25821_fh { 124struct cx25821_fh {
126 struct cx25821_dev *dev; 125 struct cx25821_dev *dev;
127 enum v4l2_buf_type type; 126 enum v4l2_buf_type type;
128 int radio;
129 u32 resources; 127 u32 resources;
130 128
131 enum v4l2_priority prio; 129 enum v4l2_priority prio;
@@ -139,10 +137,7 @@ struct cx25821_fh {
139 struct cx25821_fmt *fmt; 137 struct cx25821_fmt *fmt;
140 unsigned int width, height; 138 unsigned int width, height;
141 int channel_id; 139 int channel_id;
142
143 /* vbi capture */
144 struct videobuf_queue vidq; 140 struct videobuf_queue vidq;
145 struct videobuf_queue vbiq;
146 141
147 /* H264 Encoder specifics ONLY */ 142 /* H264 Encoder specifics ONLY */
148 struct videobuf_queue mpegq; 143 struct videobuf_queue mpegq;
@@ -153,7 +148,6 @@ enum cx25821_itype {
153 CX25821_VMUX_COMPOSITE = 1, 148 CX25821_VMUX_COMPOSITE = 1,
154 CX25821_VMUX_SVIDEO, 149 CX25821_VMUX_SVIDEO,
155 CX25821_VMUX_DEBUG, 150 CX25821_VMUX_DEBUG,
156 CX25821_RADIO,
157}; 151};
158 152
159enum cx25821_src_sel_type { 153enum cx25821_src_sel_type {
@@ -191,9 +185,7 @@ struct cx25821_board {
191 enum port portb; 185 enum port portb;
192 enum port portc; 186 enum port portc;
193 unsigned int tuner_type; 187 unsigned int tuner_type;
194 unsigned int radio_type;
195 unsigned char tuner_addr; 188 unsigned char tuner_addr;
196 unsigned char radio_addr;
197 189
198 u32 clk_freq; 190 u32 clk_freq;
199 struct cx25821_input input[CX25821_NR_INPUT]; 191 struct cx25821_input input[CX25821_NR_INPUT];
@@ -295,9 +287,6 @@ struct cx25821_dev {
295 v4l2_std_id tvnorm; 287 v4l2_std_id tvnorm;
296 unsigned int tuner_type; 288 unsigned int tuner_type;
297 unsigned char tuner_addr; 289 unsigned char tuner_addr;
298 unsigned int radio_type;
299 unsigned char radio_addr;
300 unsigned int has_radio;
301 unsigned int videc_type; 290 unsigned int videc_type;
302 unsigned char videc_addr; 291 unsigned char videc_addr;
303 unsigned short _max_num_decoders; 292 unsigned short _max_num_decoders;
@@ -326,9 +315,6 @@ struct cx25821_dev {
326 315
327 /* V4l */ 316 /* V4l */
328 u32 freq; 317 u32 freq;
329 struct video_device *vbi_dev;
330 struct video_device *radio_dev;
331 struct video_device *ioctl_dev;
332 318
333 spinlock_t slock; 319 spinlock_t slock;
334 320
@@ -467,7 +453,6 @@ extern struct cx25821_subid cx25821_subids[];
467#define VID_UPSTREAM_SRAM_CHANNEL_I SRAM_CH09 453#define VID_UPSTREAM_SRAM_CHANNEL_I SRAM_CH09
468#define VID_UPSTREAM_SRAM_CHANNEL_J SRAM_CH10 454#define VID_UPSTREAM_SRAM_CHANNEL_J SRAM_CH10
469#define AUDIO_UPSTREAM_SRAM_CHANNEL_B SRAM_CH11 455#define AUDIO_UPSTREAM_SRAM_CHANNEL_B SRAM_CH11
470#define VIDEO_IOCTL_CH 11
471 456
472struct sram_channel { 457struct sram_channel {
473 char *name; 458 char *name;
@@ -607,7 +592,6 @@ extern int cx25821_sram_channel_setup_upstream(struct cx25821_dev *dev,
607 unsigned int bpl, u32 risc); 592 unsigned int bpl, u32 risc);
608extern void cx25821_set_pixel_format(struct cx25821_dev *dev, int channel, 593extern void cx25821_set_pixel_format(struct cx25821_dev *dev, int channel,
609 u32 format); 594 u32 format);
610extern void cx25821_videoioctl_unregister(struct cx25821_dev *dev);
611extern struct video_device *cx25821_vdev_init(struct cx25821_dev *dev, 595extern struct video_device *cx25821_vdev_init(struct cx25821_dev *dev,
612 struct pci_dev *pci, 596 struct pci_dev *pci,
613 const struct video_device *template, 597 const struct video_device *template,