diff options
Diffstat (limited to 'include/media/v4l2-common.h')
-rw-r--r-- | include/media/v4l2-common.h | 25 |
1 files changed, 25 insertions, 0 deletions
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_ */ |