aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-common.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-01-18 17:37:59 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:22 -0400
commitc7d29e2f530654aa0c323aafb94d42a6a718482c (patch)
tree76e876fc6de0f79c281c2a31695ecc58c5f12122 /include/media/v4l2-common.h
parentfac6986c4777ae85fa2108ea25fee98de2c1f7b2 (diff)
V4L/DVB (10249): v4l2-common: added v4l2_i2c_tuner_addrs()
Add v4l2_i2c_tuner_addrs() to obtain the various I2C tuner addresses. This will be used in several drivers, so make this a common function as we do not want to have these I2C addresses all over the place. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/v4l2-common.h')
-rw-r--r--include/media/v4l2-common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h
index 95e74f1874e1..0f864f8daaf2 100644
--- a/include/media/v4l2-common.h
+++ b/include/media/v4l2-common.h
@@ -150,6 +150,19 @@ struct v4l2_subdev *v4l2_i2c_new_probed_subdev(struct i2c_adapter *adapter,
150void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client, 150void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client,
151 const struct v4l2_subdev_ops *ops); 151 const struct v4l2_subdev_ops *ops);
152 152
153enum v4l2_i2c_tuner_type {
154 ADDRS_RADIO, /* Radio tuner addresses */
155 ADDRS_DEMOD, /* Demod tuner addresses */
156 ADDRS_TV, /* TV tuner addresses */
157 /* TV tuner addresses if demod is present, this excludes
158 addresses used by the demodulator from the list of
159 candidates. */
160 ADDRS_TV_WITH_DEMOD,
161};
162/* Return a list of I2C tuner addresses to probe. Use only if the tuner
163 addresses are unknown. */
164const unsigned short *v4l2_i2c_tuner_addrs(enum v4l2_i2c_tuner_type type);
165
153/* ------------------------------------------------------------------------- */ 166/* ------------------------------------------------------------------------- */
154 167
155/* Internal ioctls */ 168/* Internal ioctls */