diff options
author | Michael Krufky <mkrufky@m1k.net> | 2006-01-09 12:32:31 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-09 12:32:31 -0500 |
commit | 5e453dc757385ec892a818e4e3b5de027987ced9 (patch) | |
tree | c6e5c4ffeb7557c6f3861f39cb4d28532dc3fe39 /include | |
parent | 37bdfa06b6bbf085b55d64eb5d9ed112418ed5ad (diff) |
V4L/DVB (3269): ioctls cleanups.
- Now, all internal ioctls are at v4l2-common.h
- removed unused ioctl at saa6752hs.h
- all debug ioctl code moved to v4l2-common.c
- removed duplicated stuff from other cards
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/video_decoder.h | 2 | ||||
-rw-r--r-- | include/linux/videodev2.h | 1 | ||||
-rw-r--r-- | include/media/audiochip.h | 5 | ||||
-rw-r--r-- | include/media/tuner.h | 4 | ||||
-rw-r--r-- | include/media/v4l2-common.h | 25 |
5 files changed, 27 insertions, 10 deletions
diff --git a/include/linux/video_decoder.h b/include/linux/video_decoder.h index 0e9e48b83e3b..121e26da2c18 100644 --- a/include/linux/video_decoder.h +++ b/include/linux/video_decoder.h | |||
@@ -1,6 +1,8 @@ | |||
1 | #ifndef _LINUX_VIDEO_DECODER_H | 1 | #ifndef _LINUX_VIDEO_DECODER_H |
2 | #define _LINUX_VIDEO_DECODER_H | 2 | #define _LINUX_VIDEO_DECODER_H |
3 | 3 | ||
4 | #define HAVE_VIDEO_DECODER 1 | ||
5 | |||
4 | struct video_decoder_capability { /* this name is too long */ | 6 | struct video_decoder_capability { /* this name is too long */ |
5 | __u32 flags; | 7 | __u32 flags; |
6 | #define VIDEO_DECODER_PAL 1 /* can decode PAL signal */ | 8 | #define VIDEO_DECODER_PAL 1 /* can decode PAL signal */ |
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 6ac7c1f7902f..ce40675324bd 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -1116,7 +1116,6 @@ int v4l2_prio_check(struct v4l2_prio_state *global, enum v4l2_priority *local); | |||
1116 | /* names for fancy debug output */ | 1116 | /* names for fancy debug output */ |
1117 | extern char *v4l2_field_names[]; | 1117 | extern char *v4l2_field_names[]; |
1118 | extern char *v4l2_type_names[]; | 1118 | extern char *v4l2_type_names[]; |
1119 | extern char *v4l2_ioctl_names[]; | ||
1120 | 1119 | ||
1121 | /* Compatibility layer interface -- v4l1-compat module */ | 1120 | /* Compatibility layer interface -- v4l1-compat module */ |
1122 | typedef int (*v4l2_kioctl)(struct inode *inode, struct file *file, | 1121 | typedef int (*v4l2_kioctl)(struct inode *inode, struct file *file, |
diff --git a/include/media/audiochip.h b/include/media/audiochip.h index 411f09fc4574..295d256ee811 100644 --- a/include/media/audiochip.h +++ b/include/media/audiochip.h | |||
@@ -23,11 +23,6 @@ enum audiochip { | |||
23 | 23 | ||
24 | /* ---------------------------------------------------------------------- */ | 24 | /* ---------------------------------------------------------------------- */ |
25 | 25 | ||
26 | /* v4l device was opened in Radio mode */ | ||
27 | #define AUDC_SET_RADIO _IO('m',2) | ||
28 | /* select from TV,radio,extern,MUTE */ | ||
29 | #define AUDC_SET_INPUT _IOW('m',17,int) | ||
30 | |||
31 | /* audio inputs */ | 26 | /* audio inputs */ |
32 | #define AUDIO_TUNER 0x00 | 27 | #define AUDIO_TUNER 0x00 |
33 | #define AUDIO_RADIO 0x01 | 28 | #define AUDIO_RADIO 0x01 |
diff --git a/include/media/tuner.h b/include/media/tuner.h index c5f034ecb002..6a8ef189e5fa 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -115,10 +115,6 @@ | |||
115 | #define TUNER_PHILIPS_TUV1236D 68 /* ATI HDTV Wonder */ | 115 | #define TUNER_PHILIPS_TUV1236D 68 /* ATI HDTV Wonder */ |
116 | #define TUNER_TNF_5335MF 69 /* Sabrent Bt848 */ | 116 | #define TUNER_TNF_5335MF 69 /* Sabrent Bt848 */ |
117 | 117 | ||
118 | #define TUNER_SET_TYPE_ADDR _IOW('T',3,int) | ||
119 | #define TUNER_SET_STANDBY _IOW('T',4,int) | ||
120 | #define TDA9887_SET_CONFIG _IOW('t',5,int) | ||
121 | |||
122 | /* tv card specific */ | 118 | /* tv card specific */ |
123 | #define TDA9887_PRESENT (1<<0) | 119 | #define TDA9887_PRESENT (1<<0) |
124 | #define TDA9887_PORT1_INACTIVE (1<<1) | 120 | #define TDA9887_PORT1_INACTIVE (1<<1) |
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index 90248d29ed0a..9ee616261d66 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h | |||
@@ -63,6 +63,20 @@ enum v4l2_chip_ident { | |||
63 | V4L2_IDENT_CX25843 = 243, | 63 | V4L2_IDENT_CX25843 = 243, |
64 | }; | 64 | }; |
65 | 65 | ||
66 | /* audio ioctls */ | ||
67 | /* v4l device was opened in Radio mode */ | ||
68 | #define AUDC_SET_RADIO _IO('d',88) | ||
69 | /* select from TV,radio,extern,MUTE */ | ||
70 | #define AUDC_SET_INPUT _IOW('d',89,int) | ||
71 | |||
72 | /* tuner ioctls */ | ||
73 | /* Sets tuner type and its I2C addr */ | ||
74 | #define TUNER_SET_TYPE_ADDR _IOW('d',90,int) | ||
75 | /* Puts tuner on powersaving state, disabling it, except for i2c */ | ||
76 | #define TUNER_SET_STANDBY _IOW('d',91,int) | ||
77 | /* Sets tda9887 specific stuff, like port1, port2 and qss */ | ||
78 | #define TDA9887_SET_CONFIG _IOW('d',92,int) | ||
79 | |||
66 | /* only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ | 80 | /* only implemented if CONFIG_VIDEO_ADV_DEBUG is defined */ |
67 | #define VIDIOC_INT_S_REGISTER _IOR ('d', 100, struct v4l2_register) | 81 | #define VIDIOC_INT_S_REGISTER _IOR ('d', 100, struct v4l2_register) |
68 | #define VIDIOC_INT_G_REGISTER _IOWR('d', 101, struct v4l2_register) | 82 | #define VIDIOC_INT_G_REGISTER _IOWR('d', 101, struct v4l2_register) |
@@ -108,5 +122,16 @@ enum v4l2_chip_ident { | |||
108 | If the frequency is not supported, then -EINVAL is returned. */ | 122 | If the frequency is not supported, then -EINVAL is returned. */ |
109 | #define VIDIOC_INT_I2S_CLOCK_FREQ _IOW ('d', 108, u32) | 123 | #define VIDIOC_INT_I2S_CLOCK_FREQ _IOW ('d', 108, u32) |
110 | 124 | ||
125 | /* Prints used ioctl */ | ||
126 | extern void v4l_printk_ioctl(unsigned int cmd); | ||
127 | |||
128 | #define v4l_print_ioctl(name,cmd) do {\ | ||
129 | printk(KERN_DEBUG "%s: ", name); \ | ||
130 | v4l_printk_ioctl(cmd); } while (0) | ||
131 | |||
132 | #define v4l_i2c_print_ioctl(client,cmd) do {\ | ||
133 | printk(KERN_DEBUG "%s %d-%04x: ", (client)->driver->name, \ | ||
134 | i2c_adapter_id((client)->adapter),(client)->addr); \ | ||
135 | v4l_printk_ioctl(cmd); } while (0) | ||
111 | 136 | ||
112 | #endif /* V4L2_COMMON_H_ */ | 137 | #endif /* V4L2_COMMON_H_ */ |