diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-01-15 18:31:10 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-01-15 18:31:10 -0500 |
commit | 21e2379b9ef705fcb3ba3be738decd3397fc30b7 (patch) | |
tree | 6e4f5334547aa538150fe52b60bfe014425eb53b /include | |
parent | d04ae27bae42bcce1b3fa70ca2edf25d92b1cf39 (diff) | |
parent | 366cc64b0d9ac922ac4f0f54e06c13ec95249928 (diff) |
Merge branch 'work'
Diffstat (limited to 'include')
-rw-r--r-- | include/media/tuner-types.h | 20 | ||||
-rw-r--r-- | include/media/tuner.h | 8 | ||||
-rw-r--r-- | include/media/v4l2-common.h | 7 |
3 files changed, 31 insertions, 4 deletions
diff --git a/include/media/tuner-types.h b/include/media/tuner-types.h index 64b16b1f1926..15821ab14a9e 100644 --- a/include/media/tuner-types.h +++ b/include/media/tuner-types.h | |||
@@ -19,6 +19,25 @@ struct tuner_range { | |||
19 | 19 | ||
20 | struct tuner_params { | 20 | struct tuner_params { |
21 | enum param_type type; | 21 | enum param_type type; |
22 | /* Many Philips based tuners have a comment like this in their | ||
23 | * datasheet: | ||
24 | * | ||
25 | * For channel selection involving band switching, and to ensure | ||
26 | * smooth tuning to the desired channel without causing | ||
27 | * unnecessary charge pump action, it is recommended to consider | ||
28 | * the difference between wanted channel frequency and the | ||
29 | * current channel frequency. Unnecessary charge pump action | ||
30 | * will result in very low tuning voltage which may drive the | ||
31 | * oscillator to extreme conditions. | ||
32 | * | ||
33 | * Set cb_first_if_lower_freq to 1, if this check is | ||
34 | * required for this tuner. | ||
35 | * | ||
36 | * I tested this for PAL by first setting the TV frequency to | ||
37 | * 203 MHz and then switching to 96.6 MHz FM radio. The result was | ||
38 | * static unless the control byte was sent first. | ||
39 | */ | ||
40 | unsigned int cb_first_if_lower_freq:1; | ||
22 | unsigned char config; /* to be moved into struct tuner_range for dvb-pll merge */ | 41 | unsigned char config; /* to be moved into struct tuner_range for dvb-pll merge */ |
23 | 42 | ||
24 | unsigned int count; | 43 | unsigned int count; |
@@ -27,7 +46,6 @@ struct tuner_params { | |||
27 | 46 | ||
28 | struct tunertype { | 47 | struct tunertype { |
29 | char *name; | 48 | char *name; |
30 | unsigned int has_tda988x:1; | ||
31 | struct tuner_params *params; | 49 | struct tuner_params *params; |
32 | }; | 50 | }; |
33 | 51 | ||
diff --git a/include/media/tuner.h b/include/media/tuner.h index a1d63787bc08..a5beeac495c7 100644 --- a/include/media/tuner.h +++ b/include/media/tuner.h | |||
@@ -179,7 +179,9 @@ struct tuner { | |||
179 | unsigned int mode; | 179 | unsigned int mode; |
180 | unsigned int mode_mask; /* Combination of allowable modes */ | 180 | unsigned int mode_mask; /* Combination of allowable modes */ |
181 | 181 | ||
182 | unsigned int freq; /* keep track of the current settings */ | 182 | unsigned int tv_freq; /* keep track of the current settings */ |
183 | unsigned int radio_freq; | ||
184 | u16 last_div; | ||
183 | unsigned int audmode; | 185 | unsigned int audmode; |
184 | v4l2_std_id std; | 186 | v4l2_std_id std; |
185 | 187 | ||
@@ -197,8 +199,8 @@ struct tuner { | |||
197 | unsigned int sgIF; | 199 | unsigned int sgIF; |
198 | 200 | ||
199 | /* function ptrs */ | 201 | /* function ptrs */ |
200 | void (*tv_freq)(struct i2c_client *c, unsigned int freq); | 202 | void (*set_tv_freq)(struct i2c_client *c, unsigned int freq); |
201 | void (*radio_freq)(struct i2c_client *c, unsigned int freq); | 203 | void (*set_radio_freq)(struct i2c_client *c, unsigned int freq); |
202 | int (*has_signal)(struct i2c_client *c); | 204 | int (*has_signal)(struct i2c_client *c); |
203 | int (*is_stereo)(struct i2c_client *c); | 205 | int (*is_stereo)(struct i2c_client *c); |
204 | void (*standby)(struct i2c_client *c); | 206 | void (*standby)(struct i2c_client *c); |
diff --git a/include/media/v4l2-common.h b/include/media/v4l2-common.h index c74052abb189..d4030a7e16e0 100644 --- a/include/media/v4l2-common.h +++ b/include/media/v4l2-common.h | |||
@@ -120,6 +120,13 @@ enum v4l2_chip_ident { | |||
120 | /* select from TV,radio,extern,MUTE */ | 120 | /* select from TV,radio,extern,MUTE */ |
121 | #define AUDC_SET_INPUT _IOW('d',89,int) | 121 | #define AUDC_SET_INPUT _IOW('d',89,int) |
122 | 122 | ||
123 | /* msp3400 ioctl: will be removed in the near future */ | ||
124 | struct msp_matrix { | ||
125 | int input; | ||
126 | int output; | ||
127 | }; | ||
128 | #define MSP_SET_MATRIX _IOW('m',17,struct msp_matrix) | ||
129 | |||
123 | /* tuner ioctls */ | 130 | /* tuner ioctls */ |
124 | /* Sets tuner type and its I2C addr */ | 131 | /* Sets tuner type and its I2C addr */ |
125 | #define TUNER_SET_TYPE_ADDR _IOW('d',90,int) | 132 | #define TUNER_SET_TYPE_ADDR _IOW('d',90,int) |