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>
diff --git a/drivers/media/common/tuners/tda18271.h b/drivers/media/common/tuners/tda18271.h
index bf6ba09..323f291 100644
--- a/drivers/media/common/tuners/tda18271.h
+++ b/drivers/media/common/tuners/tda18271.h
@@ -67,18 +67,15 @@
TDA18271_GATE_DIGITAL,
};
-enum tda18271_standby_mode {
- /* slave tuner output & loop thru & xtal oscillator on */
- TDA18271_STANDBY_LT_XT_ON = 0,
+enum tda18271_output_options {
+ /* slave tuner output & loop thru & xtal oscillator always on */
+ TDA18271_OUTPUT_LT_XT_ON = 0,
- /* xtal oscillator on */
- TDA18271_STANDBY_XT_ON,
+ /* slave tuner output loop thru off */
+ TDA18271_OUTPUT_LT_OFF = 1,
- /* slave tuner output / loop thru on */
- TDA18271_STANDBY_LT_ON,
-
- /* power off */
- TDA18271_STANDBY_POWER_OFF,
+ /* xtal oscillator off */
+ TDA18271_OUTPUT_XT_OFF = 2,
};
struct tda18271_config {
@@ -91,8 +88,8 @@
/* use i2c gate provided by analog or digital demod */
enum tda18271_i2c_gate gate;
- /* allow lower power standby modes */
- enum tda18271_standby_mode standby_mode;
+ /* output options that can be disabled */
+ enum tda18271_output_options output_opt;
/* force rf tracking filter calibration on startup */
unsigned int rf_cal_on_startup:1;