mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
fac6986c47
commit
c7d29e2f53
3 changed files with 65 additions and 26 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue