summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Krufky2009-08-29 01:53:30 +0200
committerMauro Carvalho Chehab2009-09-19 05:13:41 +0200
commit2dfca76303937f256e11754a716eb198b22afdd5 (patch)
treee0fbac9ca6b90342ecb53e127b6ed7786582e94c
parentV4L/DVB (12862): tda18271: add debug to show which standby mode is in use (diff)
downloadkernel-qcow2-linux-2dfca76303937f256e11754a716eb198b22afdd5.tar.gz
kernel-qcow2-linux-2dfca76303937f256e11754a716eb198b22afdd5.tar.xz
kernel-qcow2-linux-2dfca76303937f256e11754a716eb198b22afdd5.zip
V4L/DVB (12863): tda18271: add new standby mode: slave tuner output / loop thru on
Add new standby mode: TDA18271_STANDBY_LT_ON = slave tuner output loop thru on w/ xtal osc off Signed-off-by: Michael Krufky <mkrufky@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/common/tuners/tda18271-fe.c4
-rw-r--r--drivers/media/common/tuners/tda18271.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/common/tuners/tda18271-fe.c b/drivers/media/common/tuners/tda18271-fe.c
index dece8b67b993..9dcbdb17f745 100644
--- a/drivers/media/common/tuners/tda18271-fe.c
+++ b/drivers/media/common/tuners/tda18271-fe.c
@@ -1026,6 +1026,10 @@ static int tda18271_sleep(struct dvb_frontend *fe)
tda_dbg("standby mode: xtal oscillator on\n");
ret = tda18271_set_standby_mode(fe, 1, 1, 0);
break;
+ case TDA18271_STANDBY_LT_ON:
+ tda_dbg("standby mode: slave tuner output / loop thru on\n");
+ ret = tda18271_set_standby_mode(fe, 1, 0, 1);
+ break;
case TDA18271_STANDBY_LT_XT_ON:
default:
tda_dbg("standby mode: loop thru & xtal oscillator on\n");
diff --git a/drivers/media/common/tuners/tda18271.h b/drivers/media/common/tuners/tda18271.h
index 9ca716f6b1f5..bf6ba099a6bb 100644
--- a/drivers/media/common/tuners/tda18271.h
+++ b/drivers/media/common/tuners/tda18271.h
@@ -74,6 +74,9 @@ enum tda18271_standby_mode {
/* xtal oscillator on */
TDA18271_STANDBY_XT_ON,
+ /* slave tuner output / loop thru on */
+ TDA18271_STANDBY_LT_ON,
+
/* power off */
TDA18271_STANDBY_POWER_OFF,
};