diff options
-rw-r--r-- | drivers/media/video/bt8xx/bttvp.h | 2 | ||||
-rw-r--r-- | drivers/media/video/cx23885/cx23885.h | 2 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88.h | 2 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.c | 7 | ||||
-rw-r--r-- | drivers/media/video/ivtv/ivtv-fileops.c | 15 | ||||
-rw-r--r-- | drivers/media/video/saa7115.c | 13 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134.h | 2 | ||||
-rw-r--r-- | drivers/media/video/usbvision/usbvision-video.c | 4 | ||||
-rw-r--r-- | drivers/media/video/vino.c | 4 | ||||
-rw-r--r-- | drivers/media/video/w9968cf.h | 2 | ||||
-rw-r--r-- | drivers/media/video/zoran/zoran.h | 4 | ||||
-rw-r--r-- | include/media/saa7146.h | 2 | ||||
-rw-r--r-- | include/media/v4l2-subdev.h | 12 |
13 files changed, 28 insertions, 43 deletions
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h index 96498489199d..a1d0e9c9f286 100644 --- a/drivers/media/video/bt8xx/bttvp.h +++ b/drivers/media/video/bt8xx/bttvp.h | |||
@@ -26,7 +26,7 @@ | |||
26 | #define _BTTVP_H_ | 26 | #define _BTTVP_H_ |
27 | 27 | ||
28 | #include <linux/version.h> | 28 | #include <linux/version.h> |
29 | #define BTTV_VERSION_CODE KERNEL_VERSION(0,9,17) | 29 | #define BTTV_VERSION_CODE KERNEL_VERSION(0,9,18) |
30 | 30 | ||
31 | #include <linux/types.h> | 31 | #include <linux/types.h> |
32 | #include <linux/wait.h> | 32 | #include <linux/wait.h> |
diff --git a/drivers/media/video/cx23885/cx23885.h b/drivers/media/video/cx23885/cx23885.h index 02d980a29962..85642831ea8e 100644 --- a/drivers/media/video/cx23885/cx23885.h +++ b/drivers/media/video/cx23885/cx23885.h | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <linux/version.h> | 37 | #include <linux/version.h> |
38 | #include <linux/mutex.h> | 38 | #include <linux/mutex.h> |
39 | 39 | ||
40 | #define CX23885_VERSION_CODE KERNEL_VERSION(0, 0, 1) | 40 | #define CX23885_VERSION_CODE KERNEL_VERSION(0, 0, 2) |
41 | 41 | ||
42 | #define UNSET (-1U) | 42 | #define UNSET (-1U) |
43 | 43 | ||
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h index 9a43fdf20fae..7724d168fc04 100644 --- a/drivers/media/video/cx88/cx88.h +++ b/drivers/media/video/cx88/cx88.h | |||
@@ -41,7 +41,7 @@ | |||
41 | 41 | ||
42 | #include <linux/version.h> | 42 | #include <linux/version.h> |
43 | #include <linux/mutex.h> | 43 | #include <linux/mutex.h> |
44 | #define CX88_VERSION_CODE KERNEL_VERSION(0,0,6) | 44 | #define CX88_VERSION_CODE KERNEL_VERSION(0,0,7) |
45 | 45 | ||
46 | #define UNSET (-1U) | 46 | #define UNSET (-1U) |
47 | 47 | ||
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 07d5ffea6e6f..b0195e8ee4d1 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -884,12 +884,9 @@ static void ivtv_load_and_init_modules(struct ivtv *itv) | |||
884 | } | 884 | } |
885 | else if (itv->card->type == IVTV_CARD_GV_MVPRX || | 885 | else if (itv->card->type == IVTV_CARD_GV_MVPRX || |
886 | itv->card->type == IVTV_CARD_GV_MVPRX2E) { | 886 | itv->card->type == IVTV_CARD_GV_MVPRX2E) { |
887 | struct v4l2_crystal_freq crystal_freq; | ||
888 | |||
889 | /* The crystal frequency of GVMVPRX is 24.576MHz */ | 887 | /* The crystal frequency of GVMVPRX is 24.576MHz */ |
890 | crystal_freq.freq = SAA7115_FREQ_24_576_MHZ; | 888 | v4l2_subdev_call(itv->sd_video, video, s_crystal_freq, |
891 | crystal_freq.flags = SAA7115_FREQ_FL_UCGC; | 889 | SAA7115_FREQ_24_576_MHZ, SAA7115_FREQ_FL_UCGC); |
892 | v4l2_subdev_call(itv->sd_video, video, s_crystal_freq, &crystal_freq); | ||
893 | } | 890 | } |
894 | 891 | ||
895 | if (hw & IVTV_HW_CX25840) { | 892 | if (hw & IVTV_HW_CX25840) { |
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c index e212337c6513..e707ef3086b2 100644 --- a/drivers/media/video/ivtv/ivtv-fileops.c +++ b/drivers/media/video/ivtv/ivtv-fileops.c | |||
@@ -860,12 +860,9 @@ int ivtv_v4l2_close(struct file *filp) | |||
860 | ivtv_call_all(itv, core, s_std, itv->std); | 860 | ivtv_call_all(itv, core, s_std, itv->std); |
861 | /* Select correct audio input (i.e. TV tuner or Line in) */ | 861 | /* Select correct audio input (i.e. TV tuner or Line in) */ |
862 | ivtv_audio_set_io(itv); | 862 | ivtv_audio_set_io(itv); |
863 | if (itv->hw_flags & IVTV_HW_SAA711X) | 863 | if (itv->hw_flags & IVTV_HW_SAA711X) { |
864 | { | 864 | ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq, |
865 | struct v4l2_crystal_freq crystal_freq; | 865 | SAA7115_FREQ_32_11_MHZ, 0); |
866 | crystal_freq.freq = SAA7115_FREQ_32_11_MHZ; | ||
867 | crystal_freq.flags = 0; | ||
868 | ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq, &crystal_freq); | ||
869 | } | 866 | } |
870 | if (atomic_read(&itv->capturing) > 0) { | 867 | if (atomic_read(&itv->capturing) > 0) { |
871 | /* Undo video mute */ | 868 | /* Undo video mute */ |
@@ -956,10 +953,8 @@ static int ivtv_serialized_open(struct ivtv_stream *s, struct file *filp) | |||
956 | /* Select the correct audio input (i.e. radio tuner) */ | 953 | /* Select the correct audio input (i.e. radio tuner) */ |
957 | ivtv_audio_set_io(itv); | 954 | ivtv_audio_set_io(itv); |
958 | if (itv->hw_flags & IVTV_HW_SAA711X) { | 955 | if (itv->hw_flags & IVTV_HW_SAA711X) { |
959 | struct v4l2_crystal_freq crystal_freq; | 956 | ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq, |
960 | crystal_freq.freq = SAA7115_FREQ_32_11_MHZ; | 957 | SAA7115_FREQ_32_11_MHZ, SAA7115_FREQ_FL_APLL); |
961 | crystal_freq.flags = SAA7115_FREQ_FL_APLL; | ||
962 | ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq, &crystal_freq); | ||
963 | } | 958 | } |
964 | /* Done! Unmute and continue. */ | 959 | /* Done! Unmute and continue. */ |
965 | ivtv_unmute(itv); | 960 | ivtv_unmute(itv); |
diff --git a/drivers/media/video/saa7115.c b/drivers/media/video/saa7115.c index e8488430cdbd..c0e66a88be4f 100644 --- a/drivers/media/video/saa7115.c +++ b/drivers/media/video/saa7115.c | |||
@@ -1313,17 +1313,16 @@ static int saa711x_s_stream(struct v4l2_subdev *sd, int enable) | |||
1313 | return 0; | 1313 | return 0; |
1314 | } | 1314 | } |
1315 | 1315 | ||
1316 | static int saa711x_s_crystal_freq(struct v4l2_subdev *sd, struct v4l2_crystal_freq *freq) | 1316 | static int saa711x_s_crystal_freq(struct v4l2_subdev *sd, u32 freq, u32 flags) |
1317 | { | 1317 | { |
1318 | struct saa711x_state *state = to_state(sd); | 1318 | struct saa711x_state *state = to_state(sd); |
1319 | 1319 | ||
1320 | if (freq->freq != SAA7115_FREQ_32_11_MHZ && | 1320 | if (freq != SAA7115_FREQ_32_11_MHZ && freq != SAA7115_FREQ_24_576_MHZ) |
1321 | freq->freq != SAA7115_FREQ_24_576_MHZ) | ||
1322 | return -EINVAL; | 1321 | return -EINVAL; |
1323 | state->crystal_freq = freq->freq; | 1322 | state->crystal_freq = freq; |
1324 | state->cgcdiv = (freq->flags & SAA7115_FREQ_FL_CGCDIV) ? 3 : 4; | 1323 | state->cgcdiv = (flags & SAA7115_FREQ_FL_CGCDIV) ? 3 : 4; |
1325 | state->ucgc = (freq->flags & SAA7115_FREQ_FL_UCGC) ? 1 : 0; | 1324 | state->ucgc = (flags & SAA7115_FREQ_FL_UCGC) ? 1 : 0; |
1326 | state->apll = (freq->flags & SAA7115_FREQ_FL_APLL) ? 1 : 0; | 1325 | state->apll = (flags & SAA7115_FREQ_FL_APLL) ? 1 : 0; |
1327 | saa711x_s_clock_freq(sd, state->audclk_freq); | 1326 | saa711x_s_clock_freq(sd, state->audclk_freq); |
1328 | return 0; | 1327 | return 0; |
1329 | } | 1328 | } |
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h index a2dd326de5b9..0cbaf90d4874 100644 --- a/drivers/media/video/saa7134/saa7134.h +++ b/drivers/media/video/saa7134/saa7134.h | |||
@@ -20,7 +20,7 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/version.h> | 22 | #include <linux/version.h> |
23 | #define SAA7134_VERSION_CODE KERNEL_VERSION(0,2,14) | 23 | #define SAA7134_VERSION_CODE KERNEL_VERSION(0,2,15) |
24 | 24 | ||
25 | #include <linux/pci.h> | 25 | #include <linux/pci.h> |
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
diff --git a/drivers/media/video/usbvision/usbvision-video.c b/drivers/media/video/usbvision/usbvision-video.c index c8f8a3c4bbf8..d7056a5b7f9b 100644 --- a/drivers/media/video/usbvision/usbvision-video.c +++ b/drivers/media/video/usbvision/usbvision-video.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * USB USBVISION Video device driver 0.9.9 | 2 | * USB USBVISION Video device driver 0.9.10 |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * | 5 | * |
@@ -79,7 +79,7 @@ | |||
79 | #define DRIVER_LICENSE "GPL" | 79 | #define DRIVER_LICENSE "GPL" |
80 | #define USBVISION_DRIVER_VERSION_MAJOR 0 | 80 | #define USBVISION_DRIVER_VERSION_MAJOR 0 |
81 | #define USBVISION_DRIVER_VERSION_MINOR 9 | 81 | #define USBVISION_DRIVER_VERSION_MINOR 9 |
82 | #define USBVISION_DRIVER_VERSION_PATCHLEVEL 9 | 82 | #define USBVISION_DRIVER_VERSION_PATCHLEVEL 10 |
83 | #define USBVISION_DRIVER_VERSION KERNEL_VERSION(USBVISION_DRIVER_VERSION_MAJOR,\ | 83 | #define USBVISION_DRIVER_VERSION KERNEL_VERSION(USBVISION_DRIVER_VERSION_MAJOR,\ |
84 | USBVISION_DRIVER_VERSION_MINOR,\ | 84 | USBVISION_DRIVER_VERSION_MINOR,\ |
85 | USBVISION_DRIVER_VERSION_PATCHLEVEL) | 85 | USBVISION_DRIVER_VERSION_PATCHLEVEL) |
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index 4912696c4a74..2fb745464311 100644 --- a/drivers/media/video/vino.c +++ b/drivers/media/video/vino.c | |||
@@ -60,8 +60,8 @@ | |||
60 | // #define VINO_DEBUG | 60 | // #define VINO_DEBUG |
61 | // #define VINO_DEBUG_INT | 61 | // #define VINO_DEBUG_INT |
62 | 62 | ||
63 | #define VINO_MODULE_VERSION "0.0.5" | 63 | #define VINO_MODULE_VERSION "0.0.6" |
64 | #define VINO_VERSION_CODE KERNEL_VERSION(0, 0, 5) | 64 | #define VINO_VERSION_CODE KERNEL_VERSION(0, 0, 6) |
65 | 65 | ||
66 | MODULE_DESCRIPTION("SGI VINO Video4Linux2 driver"); | 66 | MODULE_DESCRIPTION("SGI VINO Video4Linux2 driver"); |
67 | MODULE_VERSION(VINO_MODULE_VERSION); | 67 | MODULE_VERSION(VINO_MODULE_VERSION); |
diff --git a/drivers/media/video/w9968cf.h b/drivers/media/video/w9968cf.h index fdfc6a4e1c8f..73ad864b4842 100644 --- a/drivers/media/video/w9968cf.h +++ b/drivers/media/video/w9968cf.h | |||
@@ -134,7 +134,7 @@ static const struct w9968cf_format w9968cf_formatlist[] = { | |||
134 | 134 | ||
135 | #define W9968CF_MODULE_NAME "V4L driver for W996[87]CF JPEG USB " \ | 135 | #define W9968CF_MODULE_NAME "V4L driver for W996[87]CF JPEG USB " \ |
136 | "Dual Mode Camera Chip" | 136 | "Dual Mode Camera Chip" |
137 | #define W9968CF_MODULE_VERSION "1:1.33-basic" | 137 | #define W9968CF_MODULE_VERSION "1:1.34-basic" |
138 | #define W9968CF_MODULE_AUTHOR "(C) 2002-2004 Luca Risolia" | 138 | #define W9968CF_MODULE_AUTHOR "(C) 2002-2004 Luca Risolia" |
139 | #define W9968CF_AUTHOR_EMAIL "<luca.risolia@studio.unibo.it>" | 139 | #define W9968CF_AUTHOR_EMAIL "<luca.risolia@studio.unibo.it>" |
140 | #define W9968CF_MODULE_LICENSE "GPL" | 140 | #define W9968CF_MODULE_LICENSE "GPL" |
diff --git a/drivers/media/video/zoran/zoran.h b/drivers/media/video/zoran/zoran.h index afecf32f1a87..d439c76b27e1 100644 --- a/drivers/media/video/zoran/zoran.h +++ b/drivers/media/video/zoran/zoran.h | |||
@@ -143,8 +143,8 @@ Private IOCTL to set up for displaying MJPEG | |||
143 | #ifdef __KERNEL__ | 143 | #ifdef __KERNEL__ |
144 | 144 | ||
145 | #define MAJOR_VERSION 0 /* driver major version */ | 145 | #define MAJOR_VERSION 0 /* driver major version */ |
146 | #define MINOR_VERSION 9 /* driver minor version */ | 146 | #define MINOR_VERSION 10 /* driver minor version */ |
147 | #define RELEASE_VERSION 5 /* release version */ | 147 | #define RELEASE_VERSION 0 /* release version */ |
148 | 148 | ||
149 | #define ZORAN_NAME "ZORAN" /* name of the device */ | 149 | #define ZORAN_NAME "ZORAN" /* name of the device */ |
150 | 150 | ||
diff --git a/include/media/saa7146.h b/include/media/saa7146.h index fff4235adae5..7a9f76ecbbbd 100644 --- a/include/media/saa7146.h +++ b/include/media/saa7146.h | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/vmalloc.h> /* for vmalloc() */ | 18 | #include <linux/vmalloc.h> /* for vmalloc() */ |
19 | #include <linux/mm.h> /* for vmalloc_to_page() */ | 19 | #include <linux/mm.h> /* for vmalloc_to_page() */ |
20 | 20 | ||
21 | #define SAA7146_VERSION_CODE 0x000500 /* 0.5.0 */ | 21 | #define SAA7146_VERSION_CODE 0x000600 /* 0.6.0 */ |
22 | 22 | ||
23 | #define saa7146_write(sxy,adr,dat) writel((dat),(sxy->mem+(adr))) | 23 | #define saa7146_write(sxy,adr,dat) writel((dat),(sxy->mem+(adr))) |
24 | #define saa7146_read(sxy,adr) readl(sxy->mem+(adr)) | 24 | #define saa7146_read(sxy,adr) readl(sxy->mem+(adr)) |
diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h index b4e48dc3f2ba..df4a76800bd6 100644 --- a/include/media/v4l2-subdev.h +++ b/include/media/v4l2-subdev.h | |||
@@ -37,12 +37,6 @@ struct v4l2_decode_vbi_line { | |||
37 | u32 type; /* VBI service type (V4L2_SLICED_*). 0 if no service found */ | 37 | u32 type; /* VBI service type (V4L2_SLICED_*). 0 if no service found */ |
38 | }; | 38 | }; |
39 | 39 | ||
40 | /* s_crystal_freq */ | ||
41 | struct v4l2_crystal_freq { | ||
42 | u32 freq; /* frequency in Hz of the crystal */ | ||
43 | u32 flags; /* device specific flags */ | ||
44 | }; | ||
45 | |||
46 | /* Sub-devices are devices that are connected somehow to the main bridge | 40 | /* Sub-devices are devices that are connected somehow to the main bridge |
47 | device. These devices are usually audio/video muxers/encoders/decoders or | 41 | device. These devices are usually audio/video muxers/encoders/decoders or |
48 | sensors and webcam controllers. | 42 | sensors and webcam controllers. |
@@ -194,8 +188,8 @@ struct v4l2_subdev_audio_ops { | |||
194 | s_std_output: set v4l2_std_id for video OUTPUT devices. This is ignored by | 188 | s_std_output: set v4l2_std_id for video OUTPUT devices. This is ignored by |
195 | video input devices. | 189 | video input devices. |
196 | 190 | ||
197 | s_crystal_freq: sets the frequency of the crystal used to generate the | 191 | s_crystal_freq: sets the frequency of the crystal used to generate the |
198 | clocks. An extra flags field allows device specific configuration | 192 | clocks in Hz. An extra flags field allows device specific configuration |
199 | regarding clock frequency dividers, etc. If not used, then set flags | 193 | regarding clock frequency dividers, etc. If not used, then set flags |
200 | to 0. If the frequency is not supported, then -EINVAL is returned. | 194 | to 0. If the frequency is not supported, then -EINVAL is returned. |
201 | 195 | ||
@@ -207,7 +201,7 @@ struct v4l2_subdev_audio_ops { | |||
207 | */ | 201 | */ |
208 | struct v4l2_subdev_video_ops { | 202 | struct v4l2_subdev_video_ops { |
209 | int (*s_routing)(struct v4l2_subdev *sd, const struct v4l2_routing *route); | 203 | int (*s_routing)(struct v4l2_subdev *sd, const struct v4l2_routing *route); |
210 | int (*s_crystal_freq)(struct v4l2_subdev *sd, struct v4l2_crystal_freq *freq); | 204 | int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags); |
211 | int (*decode_vbi_line)(struct v4l2_subdev *sd, struct v4l2_decode_vbi_line *vbi_line); | 205 | int (*decode_vbi_line)(struct v4l2_subdev *sd, struct v4l2_decode_vbi_line *vbi_line); |
212 | int (*s_vbi_data)(struct v4l2_subdev *sd, const struct v4l2_sliced_vbi_data *vbi_data); | 206 | int (*s_vbi_data)(struct v4l2_subdev *sd, const struct v4l2_sliced_vbi_data *vbi_data); |
213 | int (*g_vbi_data)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_data *vbi_data); | 207 | int (*g_vbi_data)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_data *vbi_data); |