Commit 3ff4ad81 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (11377): v4l: increase version numbers of drivers converted to v4l2_subdev.

With all the v4l2_subdev changes that were made to these drivers it is a
good idea to increase the version number of each driver.

It's just the patch level that is increased, except for the zoran and saa7146
drivers where the minor number was increased due to the more substantial
changes that were made to those two drivers.
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 940088a1
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#define _BTTVP_H_ #define _BTTVP_H_
#include <linux/version.h> #include <linux/version.h>
#define BTTV_VERSION_CODE KERNEL_VERSION(0,9,17) #define BTTV_VERSION_CODE KERNEL_VERSION(0,9,18)
#include <linux/types.h> #include <linux/types.h>
#include <linux/wait.h> #include <linux/wait.h>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include <linux/version.h> #include <linux/version.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#define CX23885_VERSION_CODE KERNEL_VERSION(0, 0, 1) #define CX23885_VERSION_CODE KERNEL_VERSION(0, 0, 2)
#define UNSET (-1U) #define UNSET (-1U)
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#include <linux/version.h> #include <linux/version.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#define CX88_VERSION_CODE KERNEL_VERSION(0,0,6) #define CX88_VERSION_CODE KERNEL_VERSION(0,0,7)
#define UNSET (-1U) #define UNSET (-1U)
......
...@@ -884,12 +884,9 @@ static void ivtv_load_and_init_modules(struct ivtv *itv) ...@@ -884,12 +884,9 @@ static void ivtv_load_and_init_modules(struct ivtv *itv)
} }
else if (itv->card->type == IVTV_CARD_GV_MVPRX || else if (itv->card->type == IVTV_CARD_GV_MVPRX ||
itv->card->type == IVTV_CARD_GV_MVPRX2E) { itv->card->type == IVTV_CARD_GV_MVPRX2E) {
struct v4l2_crystal_freq crystal_freq;
/* The crystal frequency of GVMVPRX is 24.576MHz */ /* The crystal frequency of GVMVPRX is 24.576MHz */
crystal_freq.freq = SAA7115_FREQ_24_576_MHZ; v4l2_subdev_call(itv->sd_video, video, s_crystal_freq,
crystal_freq.flags = SAA7115_FREQ_FL_UCGC; SAA7115_FREQ_24_576_MHZ, SAA7115_FREQ_FL_UCGC);
v4l2_subdev_call(itv->sd_video, video, s_crystal_freq, &crystal_freq);
} }
if (hw & IVTV_HW_CX25840) { if (hw & IVTV_HW_CX25840) {
......
...@@ -860,12 +860,9 @@ int ivtv_v4l2_close(struct file *filp) ...@@ -860,12 +860,9 @@ int ivtv_v4l2_close(struct file *filp)
ivtv_call_all(itv, core, s_std, itv->std); ivtv_call_all(itv, core, s_std, itv->std);
/* Select correct audio input (i.e. TV tuner or Line in) */ /* Select correct audio input (i.e. TV tuner or Line in) */
ivtv_audio_set_io(itv); ivtv_audio_set_io(itv);
if (itv->hw_flags & IVTV_HW_SAA711X) if (itv->hw_flags & IVTV_HW_SAA711X) {
{ ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq,
struct v4l2_crystal_freq crystal_freq; SAA7115_FREQ_32_11_MHZ, 0);
crystal_freq.freq = SAA7115_FREQ_32_11_MHZ;
crystal_freq.flags = 0;
ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq, &crystal_freq);
} }
if (atomic_read(&itv->capturing) > 0) { if (atomic_read(&itv->capturing) > 0) {
/* Undo video mute */ /* Undo video mute */
...@@ -956,10 +953,8 @@ static int ivtv_serialized_open(struct ivtv_stream *s, struct file *filp) ...@@ -956,10 +953,8 @@ static int ivtv_serialized_open(struct ivtv_stream *s, struct file *filp)
/* Select the correct audio input (i.e. radio tuner) */ /* Select the correct audio input (i.e. radio tuner) */
ivtv_audio_set_io(itv); ivtv_audio_set_io(itv);
if (itv->hw_flags & IVTV_HW_SAA711X) { if (itv->hw_flags & IVTV_HW_SAA711X) {
struct v4l2_crystal_freq crystal_freq; ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq,
crystal_freq.freq = SAA7115_FREQ_32_11_MHZ; SAA7115_FREQ_32_11_MHZ, SAA7115_FREQ_FL_APLL);
crystal_freq.flags = SAA7115_FREQ_FL_APLL;
ivtv_call_hw(itv, IVTV_HW_SAA711X, video, s_crystal_freq, &crystal_freq);
} }
/* Done! Unmute and continue. */ /* Done! Unmute and continue. */
ivtv_unmute(itv); ivtv_unmute(itv);
......
...@@ -1313,17 +1313,16 @@ static int saa711x_s_stream(struct v4l2_subdev *sd, int enable) ...@@ -1313,17 +1313,16 @@ static int saa711x_s_stream(struct v4l2_subdev *sd, int enable)
return 0; return 0;
} }
static int saa711x_s_crystal_freq(struct v4l2_subdev *sd, struct v4l2_crystal_freq *freq) static int saa711x_s_crystal_freq(struct v4l2_subdev *sd, u32 freq, u32 flags)
{ {
struct saa711x_state *state = to_state(sd); struct saa711x_state *state = to_state(sd);
if (freq->freq != SAA7115_FREQ_32_11_MHZ && if (freq != SAA7115_FREQ_32_11_MHZ && freq != SAA7115_FREQ_24_576_MHZ)
freq->freq != SAA7115_FREQ_24_576_MHZ)
return -EINVAL; return -EINVAL;
state->crystal_freq = freq->freq; state->crystal_freq = freq;
state->cgcdiv = (freq->flags & SAA7115_FREQ_FL_CGCDIV) ? 3 : 4; state->cgcdiv = (flags & SAA7115_FREQ_FL_CGCDIV) ? 3 : 4;
state->ucgc = (freq->flags & SAA7115_FREQ_FL_UCGC) ? 1 : 0; state->ucgc = (flags & SAA7115_FREQ_FL_UCGC) ? 1 : 0;
state->apll = (freq->flags & SAA7115_FREQ_FL_APLL) ? 1 : 0; state->apll = (flags & SAA7115_FREQ_FL_APLL) ? 1 : 0;
saa711x_s_clock_freq(sd, state->audclk_freq); saa711x_s_clock_freq(sd, state->audclk_freq);
return 0; return 0;
} }
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
*/ */
#include <linux/version.h> #include <linux/version.h>
#define SAA7134_VERSION_CODE KERNEL_VERSION(0,2,14) #define SAA7134_VERSION_CODE KERNEL_VERSION(0,2,15)
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/i2c.h> #include <linux/i2c.h>
......
/* /*
* USB USBVISION Video device driver 0.9.9 * USB USBVISION Video device driver 0.9.10
* *
* *
* *
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
#define DRIVER_LICENSE "GPL" #define DRIVER_LICENSE "GPL"
#define USBVISION_DRIVER_VERSION_MAJOR 0 #define USBVISION_DRIVER_VERSION_MAJOR 0
#define USBVISION_DRIVER_VERSION_MINOR 9 #define USBVISION_DRIVER_VERSION_MINOR 9
#define USBVISION_DRIVER_VERSION_PATCHLEVEL 9 #define USBVISION_DRIVER_VERSION_PATCHLEVEL 10
#define USBVISION_DRIVER_VERSION KERNEL_VERSION(USBVISION_DRIVER_VERSION_MAJOR,\ #define USBVISION_DRIVER_VERSION KERNEL_VERSION(USBVISION_DRIVER_VERSION_MAJOR,\
USBVISION_DRIVER_VERSION_MINOR,\ USBVISION_DRIVER_VERSION_MINOR,\
USBVISION_DRIVER_VERSION_PATCHLEVEL) USBVISION_DRIVER_VERSION_PATCHLEVEL)
......
...@@ -60,8 +60,8 @@ ...@@ -60,8 +60,8 @@
// #define VINO_DEBUG // #define VINO_DEBUG
// #define VINO_DEBUG_INT // #define VINO_DEBUG_INT
#define VINO_MODULE_VERSION "0.0.5" #define VINO_MODULE_VERSION "0.0.6"
#define VINO_VERSION_CODE KERNEL_VERSION(0, 0, 5) #define VINO_VERSION_CODE KERNEL_VERSION(0, 0, 6)
MODULE_DESCRIPTION("SGI VINO Video4Linux2 driver"); MODULE_DESCRIPTION("SGI VINO Video4Linux2 driver");
MODULE_VERSION(VINO_MODULE_VERSION); MODULE_VERSION(VINO_MODULE_VERSION);
......
...@@ -134,7 +134,7 @@ static const struct w9968cf_format w9968cf_formatlist[] = { ...@@ -134,7 +134,7 @@ static const struct w9968cf_format w9968cf_formatlist[] = {
#define W9968CF_MODULE_NAME "V4L driver for W996[87]CF JPEG USB " \ #define W9968CF_MODULE_NAME "V4L driver for W996[87]CF JPEG USB " \
"Dual Mode Camera Chip" "Dual Mode Camera Chip"
#define W9968CF_MODULE_VERSION "1:1.33-basic" #define W9968CF_MODULE_VERSION "1:1.34-basic"
#define W9968CF_MODULE_AUTHOR "(C) 2002-2004 Luca Risolia" #define W9968CF_MODULE_AUTHOR "(C) 2002-2004 Luca Risolia"
#define W9968CF_AUTHOR_EMAIL "<luca.risolia@studio.unibo.it>" #define W9968CF_AUTHOR_EMAIL "<luca.risolia@studio.unibo.it>"
#define W9968CF_MODULE_LICENSE "GPL" #define W9968CF_MODULE_LICENSE "GPL"
......
...@@ -143,8 +143,8 @@ Private IOCTL to set up for displaying MJPEG ...@@ -143,8 +143,8 @@ Private IOCTL to set up for displaying MJPEG
#ifdef __KERNEL__ #ifdef __KERNEL__
#define MAJOR_VERSION 0 /* driver major version */ #define MAJOR_VERSION 0 /* driver major version */
#define MINOR_VERSION 9 /* driver minor version */ #define MINOR_VERSION 10 /* driver minor version */
#define RELEASE_VERSION 5 /* release version */ #define RELEASE_VERSION 0 /* release version */
#define ZORAN_NAME "ZORAN" /* name of the device */ #define ZORAN_NAME "ZORAN" /* name of the device */
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <linux/vmalloc.h> /* for vmalloc() */ #include <linux/vmalloc.h> /* for vmalloc() */
#include <linux/mm.h> /* for vmalloc_to_page() */ #include <linux/mm.h> /* for vmalloc_to_page() */
#define SAA7146_VERSION_CODE 0x000500 /* 0.5.0 */ #define SAA7146_VERSION_CODE 0x000600 /* 0.6.0 */
#define saa7146_write(sxy,adr,dat) writel((dat),(sxy->mem+(adr))) #define saa7146_write(sxy,adr,dat) writel((dat),(sxy->mem+(adr)))
#define saa7146_read(sxy,adr) readl(sxy->mem+(adr)) #define saa7146_read(sxy,adr) readl(sxy->mem+(adr))
......
...@@ -37,12 +37,6 @@ struct v4l2_decode_vbi_line { ...@@ -37,12 +37,6 @@ struct v4l2_decode_vbi_line {
u32 type; /* VBI service type (V4L2_SLICED_*). 0 if no service found */ u32 type; /* VBI service type (V4L2_SLICED_*). 0 if no service found */
}; };
/* s_crystal_freq */
struct v4l2_crystal_freq {
u32 freq; /* frequency in Hz of the crystal */
u32 flags; /* device specific flags */
};
/* Sub-devices are devices that are connected somehow to the main bridge /* Sub-devices are devices that are connected somehow to the main bridge
device. These devices are usually audio/video muxers/encoders/decoders or device. These devices are usually audio/video muxers/encoders/decoders or
sensors and webcam controllers. sensors and webcam controllers.
...@@ -195,7 +189,7 @@ struct v4l2_subdev_audio_ops { ...@@ -195,7 +189,7 @@ struct v4l2_subdev_audio_ops {
video input devices. video input devices.
s_crystal_freq: sets the frequency of the crystal used to generate the s_crystal_freq: sets the frequency of the crystal used to generate the
clocks. An extra flags field allows device specific configuration clocks in Hz. An extra flags field allows device specific configuration
regarding clock frequency dividers, etc. If not used, then set flags regarding clock frequency dividers, etc. If not used, then set flags
to 0. If the frequency is not supported, then -EINVAL is returned. to 0. If the frequency is not supported, then -EINVAL is returned.
...@@ -207,7 +201,7 @@ struct v4l2_subdev_audio_ops { ...@@ -207,7 +201,7 @@ struct v4l2_subdev_audio_ops {
*/ */
struct v4l2_subdev_video_ops { struct v4l2_subdev_video_ops {
int (*s_routing)(struct v4l2_subdev *sd, const struct v4l2_routing *route); int (*s_routing)(struct v4l2_subdev *sd, const struct v4l2_routing *route);
int (*s_crystal_freq)(struct v4l2_subdev *sd, struct v4l2_crystal_freq *freq); int (*s_crystal_freq)(struct v4l2_subdev *sd, u32 freq, u32 flags);
int (*decode_vbi_line)(struct v4l2_subdev *sd, struct v4l2_decode_vbi_line *vbi_line); int (*decode_vbi_line)(struct v4l2_subdev *sd, struct v4l2_decode_vbi_line *vbi_line);
int (*s_vbi_data)(struct v4l2_subdev *sd, const struct v4l2_sliced_vbi_data *vbi_data); int (*s_vbi_data)(struct v4l2_subdev *sd, const struct v4l2_sliced_vbi_data *vbi_data);
int (*g_vbi_data)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_data *vbi_data); int (*g_vbi_data)(struct v4l2_subdev *sd, struct v4l2_sliced_vbi_data *vbi_data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment