diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-05-30 02:02:47 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-05-30 02:02:47 +0000 |
commit | 3a08c98d6b0d71c97886f1caf24203a378ea3563 (patch) | |
tree | e7d469f67b212639ddf1028b1025218f0f665b46 /linux/include | |
parent | cf677744e728b271c15c5e7bee421925b6b1452f (diff) | |
download | mediapointer-dvb-s2-3a08c98d6b0d71c97886f1caf24203a378ea3563.tar.gz mediapointer-dvb-s2-3a08c98d6b0d71c97886f1caf24203a378ea3563.tar.bz2 |
Some relevant changes on tuner for supporting cards with different tunners for TV and FM (Like Pixelview cards with TVision tuners). This code is experimental.
Summary of changes:
- tuner-core changed to support multiple I2C devices
- created a new define option (CONFIG_TUNER_MULTI_I2C) to allow new behavor. It is commented on tuner-core.c
- By default, it uses first scanned I2C device for FM and TV
- New client control command TUNER_SET_ADDR allows changing I2C address for FM or TV tuner.
- TVision 5533 MF now uses I2C on 0xC2 for TV and on 0xC0 for radio
- TVision 5533 MF div now uses only integer arithmetics
- tuner I2C dettach now generates warn log if failed
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/media/tuner.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/linux/include/media/tuner.h b/linux/include/media/tuner.h index 9a7584e10..f9dd563ec 100644 --- a/linux/include/media/tuner.h +++ b/linux/include/media/tuner.h @@ -125,8 +125,10 @@ #define TUNER_SET_TYPE _IOW('t',1,int) /* set tuner type */ #define TUNER_SET_TVFREQ _IOW('t',2,int) /* set tv freq */ +#define TUNER_SET_ADDR _IOW('T',3,int) /* Chooses tuner I2C address */ #define TDA9887_SET_CONFIG _IOW('t',5,int) + /* tv card specific */ # define TDA9887_PRESENT (1<<0) # define TDA9887_PORT1_INACTIVE (1<<1) @@ -147,6 +149,11 @@ #define I2C_ADDR_TDA8290 0x4b #define I2C_ADDR_TDA8275 0x61 +struct tuner_addr { + enum v4l2_tuner_type type; + unsigned short addr; +}; + struct tuner { /* device */ struct i2c_client i2c; |