aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common/tuners/tda18271.h
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@kernellabs.com>2009-08-29 15:25:37 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:13:43 -0400
commit4240b460f0dbb4bf4e3f64e6abd423f476012756 (patch)
tree8b71544047d7da38864b55d0f9f84e75f9dad400 /drivers/media/common/tuners/tda18271.h
parent2dfca76303937f256e11754a716eb198b22afdd5 (diff)
V4L/DVB (12864): tda18271: change output feature configuration to a bitmask
For better readability, treat the low power standby mode configuration as an output option feature configuration, and change it to a bitmask. If left unconfigured, all features will remain enabled, just as the default configuration was before these changes were introduced. Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/tda18271.h')
-rw-r--r--drivers/media/common/tuners/tda18271.h21
1 files changed, 9 insertions, 12 deletions
diff --git a/drivers/media/common/tuners/tda18271.h b/drivers/media/common/tuners/tda18271.h
index bf6ba099a6bb..323f2912128d 100644
--- a/drivers/media/common/tuners/tda18271.h
+++ b/drivers/media/common/tuners/tda18271.h
@@ -67,18 +67,15 @@ enum tda18271_i2c_gate {
67 TDA18271_GATE_DIGITAL, 67 TDA18271_GATE_DIGITAL,
68}; 68};
69 69
70enum tda18271_standby_mode { 70enum tda18271_output_options {
71 /* slave tuner output & loop thru & xtal oscillator on */ 71 /* slave tuner output & loop thru & xtal oscillator always on */
72 TDA18271_STANDBY_LT_XT_ON = 0, 72 TDA18271_OUTPUT_LT_XT_ON = 0,
73 73
74 /* xtal oscillator on */ 74 /* slave tuner output loop thru off */
75 TDA18271_STANDBY_XT_ON, 75 TDA18271_OUTPUT_LT_OFF = 1,
76 76
77 /* slave tuner output / loop thru on */ 77 /* xtal oscillator off */
78 TDA18271_STANDBY_LT_ON, 78 TDA18271_OUTPUT_XT_OFF = 2,
79
80 /* power off */
81 TDA18271_STANDBY_POWER_OFF,
82}; 79};
83 80
84struct tda18271_config { 81struct tda18271_config {
@@ -91,8 +88,8 @@ struct tda18271_config {
91 /* use i2c gate provided by analog or digital demod */ 88 /* use i2c gate provided by analog or digital demod */
92 enum tda18271_i2c_gate gate; 89 enum tda18271_i2c_gate gate;
93 90
94 /* allow lower power standby modes */ 91 /* output options that can be disabled */
95 enum tda18271_standby_mode standby_mode; 92 enum tda18271_output_options output_opt;
96 93
97 /* force rf tracking filter calibration on startup */ 94 /* force rf tracking filter calibration on startup */
98 unsigned int rf_cal_on_startup:1; 95 unsigned int rf_cal_on_startup:1;