diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-01-18 23:37:59 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-01-18 23:37:59 +0100 |
commit | b3bd2b4c24de403f1baa56ec2ec452e7f8f9b463 (patch) | |
tree | dddad7790c226fe9edd7f8d5ab95e25df4c07954 /linux/include/media/v4l2-common.h | |
parent | 4d16d13d22862fd3a698ca766f03362ec6bd56ff (diff) | |
download | mediapointer-dvb-s2-b3bd2b4c24de403f1baa56ec2ec452e7f8f9b463.tar.gz mediapointer-dvb-s2-b3bd2b4c24de403f1baa56ec2ec452e7f8f9b463.tar.bz2 |
v4l2-common: added v4l2_i2c_tuner_addrs()
From: Hans Verkuil <hverkuil@xs4all.nl>
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.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/include/media/v4l2-common.h')
-rw-r--r-- | linux/include/media/v4l2-common.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/linux/include/media/v4l2-common.h b/linux/include/media/v4l2-common.h index 95e74f187..0f864f8da 100644 --- a/linux/include/media/v4l2-common.h +++ b/linux/include/media/v4l2-common.h @@ -150,6 +150,19 @@ struct v4l2_subdev *v4l2_i2c_new_probed_subdev(struct i2c_adapter *adapter, void v4l2_i2c_subdev_init(struct v4l2_subdev *sd, struct i2c_client *client, const struct v4l2_subdev_ops *ops); +enum v4l2_i2c_tuner_type { + ADDRS_RADIO, /* Radio tuner addresses */ + ADDRS_DEMOD, /* Demod tuner addresses */ + ADDRS_TV, /* TV tuner addresses */ + /* TV tuner addresses if demod is present, this excludes + addresses used by the demodulator from the list of + candidates. */ + ADDRS_TV_WITH_DEMOD, +}; +/* Return a list of I2C tuner addresses to probe. Use only if the tuner + addresses are unknown. */ +const unsigned short *v4l2_i2c_tuner_addrs(enum v4l2_i2c_tuner_type type); + /* ------------------------------------------------------------------------- */ /* Internal ioctls */ |