diff options
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/ir-common.h | 40 | ||||
-rw-r--r-- | include/media/saa7146.h | 21 | ||||
-rw-r--r-- | include/media/tuner-types.h | 3 | ||||
-rw-r--r-- | include/media/tuner.h | 6 | ||||
-rw-r--r-- | include/media/v4l2-common.h | 62 | ||||
-rw-r--r-- | include/media/video-buf-dvb.h | 2 | ||||
-rw-r--r-- | include/media/video-buf.h | 2 |
7 files changed, 106 insertions, 30 deletions
diff --git a/include/media/ir-common.h b/include/media/ir-common.h index ad3e9bb670c3..302d5b3946e7 100644 --- a/include/media/ir-common.h +++ b/include/media/ir-common.h | |||
@@ -47,13 +47,6 @@ struct ir_input_state { | |||
47 | int keypressed; /* current state */ | 47 | int keypressed; /* current state */ |
48 | }; | 48 | }; |
49 | 49 | ||
50 | extern IR_KEYTAB_TYPE ir_codes_rc5_tv[IR_KEYTAB_SIZE]; | ||
51 | extern IR_KEYTAB_TYPE ir_codes_winfast[IR_KEYTAB_SIZE]; | ||
52 | extern IR_KEYTAB_TYPE ir_codes_pinnacle[IR_KEYTAB_SIZE]; | ||
53 | extern IR_KEYTAB_TYPE ir_codes_empty[IR_KEYTAB_SIZE]; | ||
54 | extern IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE]; | ||
55 | extern IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE]; | ||
56 | |||
57 | void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, | 50 | void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, |
58 | int ir_type, IR_KEYTAB_TYPE *ir_codes); | 51 | int ir_type, IR_KEYTAB_TYPE *ir_codes); |
59 | void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir); | 52 | void ir_input_nokey(struct input_dev *dev, struct ir_input_state *ir); |
@@ -64,6 +57,39 @@ int ir_dump_samples(u32 *samples, int count); | |||
64 | int ir_decode_biphase(u32 *samples, int count, int low, int high); | 57 | int ir_decode_biphase(u32 *samples, int count, int low, int high); |
65 | int ir_decode_pulsedistance(u32 *samples, int count, int low, int high); | 58 | int ir_decode_pulsedistance(u32 *samples, int count, int low, int high); |
66 | 59 | ||
60 | /* Keymaps to be used by other modules */ | ||
61 | |||
62 | extern IR_KEYTAB_TYPE ir_codes_empty[IR_KEYTAB_SIZE]; | ||
63 | extern IR_KEYTAB_TYPE ir_codes_avermedia[IR_KEYTAB_SIZE]; | ||
64 | extern IR_KEYTAB_TYPE ir_codes_avermedia_dvbt[IR_KEYTAB_SIZE]; | ||
65 | extern IR_KEYTAB_TYPE ir_codes_apac_viewcomp[IR_KEYTAB_SIZE]; | ||
66 | extern IR_KEYTAB_TYPE ir_codes_pixelview[IR_KEYTAB_SIZE]; | ||
67 | extern IR_KEYTAB_TYPE ir_codes_nebula[IR_KEYTAB_SIZE]; | ||
68 | extern IR_KEYTAB_TYPE ir_codes_dntv_live_dvb_t[IR_KEYTAB_SIZE]; | ||
69 | extern IR_KEYTAB_TYPE ir_codes_iodata_bctv7e[IR_KEYTAB_SIZE]; | ||
70 | extern IR_KEYTAB_TYPE ir_codes_adstech_dvb_t_pci[IR_KEYTAB_SIZE]; | ||
71 | extern IR_KEYTAB_TYPE ir_codes_msi_tvanywhere[IR_KEYTAB_SIZE]; | ||
72 | extern IR_KEYTAB_TYPE ir_codes_cinergy_1400[IR_KEYTAB_SIZE]; | ||
73 | extern IR_KEYTAB_TYPE ir_codes_avertv_303[IR_KEYTAB_SIZE]; | ||
74 | extern IR_KEYTAB_TYPE ir_codes_dntv_live_dvbt_pro[IR_KEYTAB_SIZE]; | ||
75 | extern IR_KEYTAB_TYPE ir_codes_em_terratec[IR_KEYTAB_SIZE]; | ||
76 | extern IR_KEYTAB_TYPE ir_codes_em_pinnacle_usb[IR_KEYTAB_SIZE]; | ||
77 | extern IR_KEYTAB_TYPE ir_codes_flyvideo[IR_KEYTAB_SIZE]; | ||
78 | extern IR_KEYTAB_TYPE ir_codes_flydvb[IR_KEYTAB_SIZE]; | ||
79 | extern IR_KEYTAB_TYPE ir_codes_cinergy[IR_KEYTAB_SIZE]; | ||
80 | extern IR_KEYTAB_TYPE ir_codes_eztv[IR_KEYTAB_SIZE]; | ||
81 | extern IR_KEYTAB_TYPE ir_codes_avermedia[IR_KEYTAB_SIZE]; | ||
82 | extern IR_KEYTAB_TYPE ir_codes_videomate_tv_pvr[IR_KEYTAB_SIZE]; | ||
83 | extern IR_KEYTAB_TYPE ir_codes_manli[IR_KEYTAB_SIZE]; | ||
84 | extern IR_KEYTAB_TYPE ir_codes_gotview7135[IR_KEYTAB_SIZE]; | ||
85 | extern IR_KEYTAB_TYPE ir_codes_purpletv[IR_KEYTAB_SIZE]; | ||
86 | extern IR_KEYTAB_TYPE ir_codes_pctv_sedna[IR_KEYTAB_SIZE]; | ||
87 | extern IR_KEYTAB_TYPE ir_codes_pv951[IR_KEYTAB_SIZE]; | ||
88 | extern IR_KEYTAB_TYPE ir_codes_rc5_tv[IR_KEYTAB_SIZE]; | ||
89 | extern IR_KEYTAB_TYPE ir_codes_winfast[IR_KEYTAB_SIZE]; | ||
90 | extern IR_KEYTAB_TYPE ir_codes_pinnacle[IR_KEYTAB_SIZE]; | ||
91 | extern IR_KEYTAB_TYPE ir_codes_hauppauge_new[IR_KEYTAB_SIZE]; | ||
92 | |||
67 | #endif | 93 | #endif |
68 | 94 | ||
69 | /* | 95 | /* |
diff --git a/include/media/saa7146.h b/include/media/saa7146.h index 2bc634fcb7bb..fee579f10b32 100644 --- a/include/media/saa7146.h +++ b/include/media/saa7146.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #include <linux/i2c.h> /* for i2c subsystem */ | 11 | #include <linux/i2c.h> /* for i2c subsystem */ |
12 | #include <asm/io.h> /* for accessing devices */ | 12 | #include <asm/io.h> /* for accessing devices */ |
13 | #include <linux/stringify.h> | 13 | #include <linux/stringify.h> |
14 | #include <linux/mutex.h> | ||
15 | |||
14 | #include <linux/vmalloc.h> /* for vmalloc() */ | 16 | #include <linux/vmalloc.h> /* for vmalloc() */ |
15 | #include <linux/mm.h> /* for vmalloc_to_page() */ | 17 | #include <linux/mm.h> /* for vmalloc_to_page() */ |
16 | 18 | ||
@@ -112,7 +114,7 @@ struct saa7146_dev | |||
112 | 114 | ||
113 | /* different device locks */ | 115 | /* different device locks */ |
114 | spinlock_t slock; | 116 | spinlock_t slock; |
115 | struct semaphore lock; | 117 | struct mutex lock; |
116 | 118 | ||
117 | unsigned char __iomem *mem; /* pointer to mapped IO memory */ | 119 | unsigned char __iomem *mem; /* pointer to mapped IO memory */ |
118 | int revision; /* chip revision; needed for bug-workarounds*/ | 120 | int revision; /* chip revision; needed for bug-workarounds*/ |
@@ -133,15 +135,16 @@ struct saa7146_dev | |||
133 | void (*vv_callback)(struct saa7146_dev *dev, unsigned long status); | 135 | void (*vv_callback)(struct saa7146_dev *dev, unsigned long status); |
134 | 136 | ||
135 | /* i2c-stuff */ | 137 | /* i2c-stuff */ |
136 | struct semaphore i2c_lock; | 138 | struct mutex i2c_lock; |
137 | u32 i2c_bitrate; | 139 | |
138 | struct saa7146_dma d_i2c; /* pointer to i2c memory */ | 140 | u32 i2c_bitrate; |
139 | wait_queue_head_t i2c_wq; | 141 | struct saa7146_dma d_i2c; /* pointer to i2c memory */ |
140 | int i2c_op; | 142 | wait_queue_head_t i2c_wq; |
143 | int i2c_op; | ||
141 | 144 | ||
142 | /* memories */ | 145 | /* memories */ |
143 | struct saa7146_dma d_rps0; | 146 | struct saa7146_dma d_rps0; |
144 | struct saa7146_dma d_rps1; | 147 | struct saa7146_dma d_rps1; |
145 | }; | 148 | }; |
146 | 149 | ||
147 | /* from saa7146_i2c.c */ | 150 | /* from saa7146_i2c.c */ |
@@ -150,7 +153,7 @@ int saa7146_i2c_transfer(struct saa7146_dev *saa, const struct i2c_msg *msgs, in | |||
150 | 153 | ||
151 | /* from saa7146_core.c */ | 154 | /* from saa7146_core.c */ |
152 | extern struct list_head saa7146_devices; | 155 | extern struct list_head saa7146_devices; |
153 | extern struct semaphore saa7146_devices_lock; | 156 | extern struct mutex saa7146_devices_lock; |
154 | int saa7146_register_extension(struct saa7146_extension*); | 157 | int saa7146_register_extension(struct saa7146_extension*); |
155 | int saa7146_unregister_extension(struct saa7146_extension*); | 158 | int saa7146_unregister_extension(struct saa7146_extension*); |
156 | struct saa7146_format* format_by_fourcc(struct saa7146_dev *dev, int fourcc); | 159 | struct saa7146_format* format_by_fourcc(struct saa7146_dev *dev, int fourcc); |
diff --git a/include/media/tuner-types.h b/include/media/tuner-types.h index 15821ab14a9e..ad9c171bfa07 100644 --- a/include/media/tuner-types.h +++ b/include/media/tuner-types.h | |||
@@ -14,6 +14,7 @@ enum param_type { | |||
14 | 14 | ||
15 | struct tuner_range { | 15 | struct tuner_range { |
16 | unsigned short limit; | 16 | unsigned short limit; |
17 | unsigned char config; | ||
17 | unsigned char cb; | 18 | unsigned char cb; |
18 | }; | 19 | }; |
19 | 20 | ||
@@ -38,7 +39,6 @@ struct tuner_params { | |||
38 | * static unless the control byte was sent first. | 39 | * static unless the control byte was sent first. |
39 | */ | 40 | */ |
40 | unsigned int cb_first_if_lower_freq:1; | 41 | unsigned int cb_first_if_lower_freq:1; |
41 | unsigned char config; /* to be moved into struct tuner_range for dvb-pll merge */ | ||
42 | 42 | ||
43 | unsigned int count; | 43 | unsigned int count; |
44 | struct tuner_range *ranges; | 44 | struct tuner_range *ranges; |
@@ -46,6 +46,7 @@ struct tuner_params { | |||
46 | 46 | ||
47 | struct tunertype { | 47 | struct tunertype { |
48 | char *name; | 48 | char *name; |
49 | unsigned int count; | ||
49 | struct tuner_params *params; | 50 | struct tuner_params *params; |
50 | }; | 51 | }; |
51 | 52 | ||
diff --git a/include/media/tuner.h b/include/media/tuner.h index a5beeac495c7..017fed7d5e4d 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -110,12 +110,15 @@ | |||
110 | 110 | ||
111 | #define TUNER_LG_TDVS_H062F 64 /* DViCO FusionHDTV 5 */ | 111 | #define TUNER_LG_TDVS_H062F 64 /* DViCO FusionHDTV 5 */ |
112 | #define TUNER_YMEC_TVF66T5_B_DFF 65 /* Acorp Y878F */ | 112 | #define TUNER_YMEC_TVF66T5_B_DFF 65 /* Acorp Y878F */ |
113 | #define TUNER_LG_NTSC_TALN_MINI 66 | 113 | #define TUNER_LG_TALN 66 |
114 | #define TUNER_PHILIPS_TD1316 67 | 114 | #define TUNER_PHILIPS_TD1316 67 |
115 | 115 | ||
116 | #define TUNER_PHILIPS_TUV1236D 68 /* ATI HDTV Wonder */ | 116 | #define TUNER_PHILIPS_TUV1236D 68 /* ATI HDTV Wonder */ |
117 | #define TUNER_TNF_5335MF 69 /* Sabrent Bt848 */ | 117 | #define TUNER_TNF_5335MF 69 /* Sabrent Bt848 */ |
118 | #define TUNER_SAMSUNG_TCPN_2121P30A 70 /* Hauppauge PVR-500MCE NTSC */ | 118 | #define TUNER_SAMSUNG_TCPN_2121P30A 70 /* Hauppauge PVR-500MCE NTSC */ |
119 | #define TUNER_XCEIVE_XC3028 71 | ||
120 | |||
121 | #define TUNER_THOMSON_FE6600 72 /* DViCO FusionHDTV DVB-T Hybrid */ | ||
119 | 122 | ||
120 | /* tv card specific */ | 123 | /* tv card specific */ |
121 | #define TDA9887_PRESENT (1<<0) | 124 | #define TDA9887_PRESENT (1<<0) |
@@ -209,6 +212,7 @@ struct tuner { | |||
209 | extern unsigned const int tuner_count; | 212 | extern unsigned const int tuner_count; |
210 | 213 | ||
211 | extern int microtune_init(struct i2c_client *c); | 214 | extern int microtune_init(struct i2c_client *c); |
215 | extern int xc3028_init(struct i2c_client *c); | ||
212 | extern int tda8290_init(struct i2c_client *c); | 216 | extern int tda8290_init(struct i2c_client *c); |
213 | extern int tda8290_probe(struct i2c_client *c); | 217 | extern int tda8290_probe(struct i2c_client *c); |
214 | extern int tea5767_tuner_init(struct i2c_client *c); | 218 | extern int tea5767_tuner_init(struct i2c_client *c); |
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index d4030a7e16e0..2360453e7496 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h | |||
@@ -58,6 +58,9 @@ | |||
58 | /* Prints the ioctl in a human-readable format */ | 58 | /* Prints the ioctl in a human-readable format */ |
59 | extern void v4l_printk_ioctl(unsigned int cmd); | 59 | extern void v4l_printk_ioctl(unsigned int cmd); |
60 | 60 | ||
61 | /* Prints the ioctl and arg in a human-readable format */ | ||
62 | extern void v4l_printk_ioctl_arg(char *s,unsigned int cmd, void *arg); | ||
63 | |||
61 | /* Use this macro for non-I2C drivers. Pass the driver name as the first arg. */ | 64 | /* Use this macro for non-I2C drivers. Pass the driver name as the first arg. */ |
62 | #define v4l_print_ioctl(name, cmd) \ | 65 | #define v4l_print_ioctl(name, cmd) \ |
63 | do { \ | 66 | do { \ |
@@ -100,6 +103,7 @@ enum v4l2_chip_ident { | |||
100 | V4L2_IDENT_UNKNOWN = 0, | 103 | V4L2_IDENT_UNKNOWN = 0, |
101 | 104 | ||
102 | /* module saa7115: reserved range 100-149 */ | 105 | /* module saa7115: reserved range 100-149 */ |
106 | V4L2_IDENT_SAA7113 = 103, | ||
103 | V4L2_IDENT_SAA7114 = 104, | 107 | V4L2_IDENT_SAA7114 = 104, |
104 | V4L2_IDENT_SAA7115 = 105, | 108 | V4L2_IDENT_SAA7115 = 105, |
105 | 109 | ||
@@ -115,12 +119,15 @@ enum v4l2_chip_ident { | |||
115 | }; | 119 | }; |
116 | 120 | ||
117 | /* audio ioctls */ | 121 | /* audio ioctls */ |
118 | /* v4l device was opened in Radio mode */ | 122 | |
123 | /* v4l device was opened in Radio mode, to be replaced by VIDIOC_INT_S_TUNER_MODE */ | ||
119 | #define AUDC_SET_RADIO _IO('d',88) | 124 | #define AUDC_SET_RADIO _IO('d',88) |
120 | /* select from TV,radio,extern,MUTE */ | 125 | |
126 | /* select from TV,radio,extern,MUTE, to be replaced with VIDIOC_INT_S_AUDIO_ROUTING */ | ||
121 | #define AUDC_SET_INPUT _IOW('d',89,int) | 127 | #define AUDC_SET_INPUT _IOW('d',89,int) |
122 | 128 | ||
123 | /* msp3400 ioctl: will be removed in the near future */ | 129 | /* msp3400 ioctl: will be removed in the near future, to be replaced by |
130 | VIDIOC_INT_S_AUDIO_ROUTING. */ | ||
124 | struct msp_matrix { | 131 | struct msp_matrix { |
125 | int input; | 132 | int input; |
126 | int output; | 133 | int output; |
@@ -128,12 +135,25 @@ struct msp_matrix { | |||
128 | #define MSP_SET_MATRIX _IOW('m',17,struct msp_matrix) | 135 | #define MSP_SET_MATRIX _IOW('m',17,struct msp_matrix) |
129 | 136 | ||
130 | /* tuner ioctls */ | 137 | /* tuner ioctls */ |
138 | |||
131 | /* Sets tuner type and its I2C addr */ | 139 | /* Sets tuner type and its I2C addr */ |
132 | #define TUNER_SET_TYPE_ADDR _IOW('d',90,int) | 140 | #define TUNER_SET_TYPE_ADDR _IOW('d', 90, int) |
133 | /* Puts tuner on powersaving state, disabling it, except for i2c */ | 141 | |
134 | #define TUNER_SET_STANDBY _IOW('d',91,int) | 142 | /* Puts tuner on powersaving state, disabling it, except for i2c. To be replaced |
143 | by VIDIOC_INT_S_STANDBY. */ | ||
144 | #define TUNER_SET_STANDBY _IOW('d', 91, int) | ||
145 | |||
135 | /* Sets tda9887 specific stuff, like port1, port2 and qss */ | 146 | /* Sets tda9887 specific stuff, like port1, port2 and qss */ |
136 | #define TDA9887_SET_CONFIG _IOW('d',92,int) | 147 | #define TDA9887_SET_CONFIG _IOW('d', 92, int) |
148 | |||
149 | /* Switch the tuner to a specific tuner mode. Replacement of AUDC_SET_RADIO */ | ||
150 | #define VIDIOC_INT_S_TUNER_MODE _IOW('d', 93, enum v4l2_tuner_type) | ||
151 | |||
152 | /* Generic standby command. Passing -1 (all bits set to 1) will put the whole | ||
153 | chip into standby mode, value 0 will make the chip fully active. Specific | ||
154 | bits can be used by certain chips to enable/disable specific subsystems. | ||
155 | Replacement of TUNER_SET_STANDBY. */ | ||
156 | #define VIDIOC_INT_S_STANDBY _IOW('d', 94, u32) | ||
137 | 157 | ||
138 | /* only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ | 158 | /* only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ |
139 | #define VIDIOC_INT_S_REGISTER _IOR ('d', 100, struct v4l2_register) | 159 | #define VIDIOC_INT_S_REGISTER _IOR ('d', 100, struct v4l2_register) |
@@ -160,7 +180,8 @@ struct msp_matrix { | |||
160 | 180 | ||
161 | /* Used to generate VBI signals on a video signal. v4l2_sliced_vbi_data is | 181 | /* Used to generate VBI signals on a video signal. v4l2_sliced_vbi_data is |
162 | filled with the data packets that should be output. Note that if you set | 182 | filled with the data packets that should be output. Note that if you set |
163 | the line field to 0, then that VBI signal is disabled. */ | 183 | the line field to 0, then that VBI signal is disabled. If no |
184 | valid VBI data was found, then the type field is set to 0 on return. */ | ||
164 | #define VIDIOC_INT_S_VBI_DATA _IOW ('d', 105, struct v4l2_sliced_vbi_data) | 185 | #define VIDIOC_INT_S_VBI_DATA _IOW ('d', 105, struct v4l2_sliced_vbi_data) |
165 | 186 | ||
166 | /* Used to obtain the sliced VBI packet from a readback register. Not all | 187 | /* Used to obtain the sliced VBI packet from a readback register. Not all |
@@ -168,11 +189,11 @@ struct msp_matrix { | |||
168 | register contains invalid or erroneous data -EIO is returned. Note that | 189 | register contains invalid or erroneous data -EIO is returned. Note that |
169 | you must fill in the 'id' member and the 'field' member (to determine | 190 | you must fill in the 'id' member and the 'field' member (to determine |
170 | whether CC data from the first or second field should be obtained). */ | 191 | whether CC data from the first or second field should be obtained). */ |
171 | #define VIDIOC_INT_G_VBI_DATA _IOWR('d', 106, struct v4l2_sliced_vbi_data *) | 192 | #define VIDIOC_INT_G_VBI_DATA _IOWR('d', 106, struct v4l2_sliced_vbi_data) |
172 | 193 | ||
173 | /* Returns the chip identifier or V4L2_IDENT_UNKNOWN if no identification can | 194 | /* Returns the chip identifier or V4L2_IDENT_UNKNOWN if no identification can |
174 | be made. */ | 195 | be made. */ |
175 | #define VIDIOC_INT_G_CHIP_IDENT _IOR ('d', 107, enum v4l2_chip_ident *) | 196 | #define VIDIOC_INT_G_CHIP_IDENT _IOR ('d', 107, enum v4l2_chip_ident) |
176 | 197 | ||
177 | /* Sets I2S speed in bps. This is used to provide a standard way to select I2S | 198 | /* Sets I2S speed in bps. This is used to provide a standard way to select I2S |
178 | clock used by driving digital audio streams at some board designs. | 199 | clock used by driving digital audio streams at some board designs. |
@@ -180,4 +201,25 @@ struct msp_matrix { | |||
180 | If the frequency is not supported, then -EINVAL is returned. */ | 201 | If the frequency is not supported, then -EINVAL is returned. */ |
181 | #define VIDIOC_INT_I2S_CLOCK_FREQ _IOW ('d', 108, u32) | 202 | #define VIDIOC_INT_I2S_CLOCK_FREQ _IOW ('d', 108, u32) |
182 | 203 | ||
204 | /* Routing definition, device dependent. It specifies which inputs (if any) | ||
205 | should be routed to which outputs (if any). */ | ||
206 | struct v4l2_routing { | ||
207 | u32 input; | ||
208 | u32 output; | ||
209 | }; | ||
210 | |||
211 | /* These internal commands should be used to define the inputs and outputs | ||
212 | of an audio/video chip. They will replace AUDC_SET_INPUT. | ||
213 | The v4l2 API commands VIDIOC_S/G_INPUT, VIDIOC_S/G_OUTPUT, | ||
214 | VIDIOC_S/G_AUDIO and VIDIOC_S/G_AUDOUT are meant to be used by the | ||
215 | user. Internally these commands should be used to switch inputs/outputs | ||
216 | because only the driver knows how to map a 'Television' input to the precise | ||
217 | input/output routing of an A/D converter, or a DSP, or a video digitizer. | ||
218 | These four commands should only be sent directly to an i2c device, they | ||
219 | should not be broadcast as the routing is very device specific. */ | ||
220 | #define VIDIOC_INT_S_AUDIO_ROUTING _IOW ('d', 109, struct v4l2_routing) | ||
221 | #define VIDIOC_INT_G_AUDIO_ROUTING _IOR ('d', 110, struct v4l2_routing) | ||
222 | #define VIDIOC_INT_S_VIDEO_ROUTING _IOW ('d', 111, struct v4l2_routing) | ||
223 | #define VIDIOC_INT_G_VIDEO_ROUTING _IOR ('d', 112, struct v4l2_routing) | ||
224 | |||
183 | #endif /* V4L2_COMMON_H_ */ | 225 | #endif /* V4L2_COMMON_H_ */ |
diff --git a/include/media/video-buf-dvb.h b/include/media/video-buf-dvb.h index ad0a07a3a895..b78d90fe629f 100644 --- a/include/media/video-buf-dvb.h +++ b/include/media/video-buf-dvb.h | |||
@@ -11,7 +11,7 @@ struct videobuf_dvb { | |||
11 | struct videobuf_queue dvbq; | 11 | struct videobuf_queue dvbq; |
12 | 12 | ||
13 | /* video-buf-dvb state info */ | 13 | /* video-buf-dvb state info */ |
14 | struct semaphore lock; | 14 | struct mutex lock; |
15 | struct task_struct *thread; | 15 | struct task_struct *thread; |
16 | int nfeeds; | 16 | int nfeeds; |
17 | 17 | ||
diff --git a/include/media/video-buf.h b/include/media/video-buf.h index 8ecfd78e0027..d90dec5484ee 100644 --- a/include/media/video-buf.h +++ b/include/media/video-buf.h | |||
@@ -177,7 +177,7 @@ struct videobuf_queue_ops { | |||
177 | }; | 177 | }; |
178 | 178 | ||
179 | struct videobuf_queue { | 179 | struct videobuf_queue { |
180 | struct semaphore lock; | 180 | struct mutex lock; |
181 | spinlock_t *irqlock; | 181 | spinlock_t *irqlock; |
182 | struct pci_dev *pci; | 182 | struct pci_dev *pci; |
183 | 183 | ||