diff options
Diffstat (limited to 'include/media/v4l2-common.h')
-rw-r--r-- | include/media/v4l2-common.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index 181a40c46a52..475d0d8275e0 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h | |||
@@ -104,6 +104,17 @@ int v4l2_chip_match_host(u32 id_type, u32 chip_id); | |||
104 | 104 | ||
105 | /* ------------------------------------------------------------------------- */ | 105 | /* ------------------------------------------------------------------------- */ |
106 | 106 | ||
107 | /* Helper function for I2C legacy drivers */ | ||
108 | |||
109 | struct i2c_driver; | ||
110 | struct i2c_adapter; | ||
111 | struct i2c_client; | ||
112 | |||
113 | int v4l2_i2c_attach(struct i2c_adapter *adapter, int address, struct i2c_driver *driver, | ||
114 | const char *name, int (*probe)(struct i2c_client *)); | ||
115 | |||
116 | /* ------------------------------------------------------------------------- */ | ||
117 | |||
107 | /* Internal ioctls */ | 118 | /* Internal ioctls */ |
108 | 119 | ||
109 | /* VIDIOC_INT_DECODE_VBI_LINE */ | 120 | /* VIDIOC_INT_DECODE_VBI_LINE */ |
@@ -116,6 +127,11 @@ struct v4l2_decode_vbi_line { | |||
116 | u32 type; /* VBI service type (V4L2_SLICED_*). 0 if no service found */ | 127 | u32 type; /* VBI service type (V4L2_SLICED_*). 0 if no service found */ |
117 | }; | 128 | }; |
118 | 129 | ||
130 | struct v4l2_priv_tun_config { | ||
131 | int tuner; | ||
132 | void *priv; | ||
133 | }; | ||
134 | |||
119 | /* audio ioctls */ | 135 | /* audio ioctls */ |
120 | 136 | ||
121 | /* v4l device was opened in Radio mode, to be replaced by VIDIOC_INT_S_TUNER_MODE */ | 137 | /* v4l device was opened in Radio mode, to be replaced by VIDIOC_INT_S_TUNER_MODE */ |
@@ -131,7 +147,7 @@ struct v4l2_decode_vbi_line { | |||
131 | #define TUNER_SET_STANDBY _IOW('d', 91, int) | 147 | #define TUNER_SET_STANDBY _IOW('d', 91, int) |
132 | 148 | ||
133 | /* Sets tda9887 specific stuff, like port1, port2 and qss */ | 149 | /* Sets tda9887 specific stuff, like port1, port2 and qss */ |
134 | #define TDA9887_SET_CONFIG _IOW('d', 92, int) | 150 | #define TUNER_SET_CONFIG _IOW('d', 92, struct v4l2_priv_tun_config) |
135 | 151 | ||
136 | /* Switch the tuner to a specific tuner mode. Replacement of AUDC_SET_RADIO */ | 152 | /* Switch the tuner to a specific tuner mode. Replacement of AUDC_SET_RADIO */ |
137 | #define VIDIOC_INT_S_TUNER_MODE _IOW('d', 93, enum v4l2_tuner_type) | 153 | #define VIDIOC_INT_S_TUNER_MODE _IOW('d', 93, enum v4l2_tuner_type) |