summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-11 02:00:34 -0400
committerDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-11 02:00:34 -0400
commitc55d671ee9eb267b04c218863cd9a577fa036dbc (patch)
tree4ac8e9fe30a4fbcfe92bf4bd0974a5ccd1a19386 /linux/drivers/media/dvb
parentfe041f64faf5fecd2b6a9edecf7c74bb7cf71c95 (diff)
downloadmediapointer-dvb-s2-c55d671ee9eb267b04c218863cd9a577fa036dbc.tar.gz
mediapointer-dvb-s2-c55d671ee9eb267b04c218863cd9a577fa036dbc.tar.bz2
au8522: power down the digital demod when not in use
From: Devin Heitmueller <dheitmueller@linuxtv.org> When the au8522 is idle, put the chip into a low power mode (reduces power consumption from 450ma to 346ma) Thanks to Michael Krufky <mkrufky@linuxtv.org> and Steven Toth <stoth@linuxtv.org> for providing sample hardware, engineering level support, and testing. Priority: normal Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/au8522_dig.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/au8522_dig.c b/linux/drivers/media/dvb/frontends/au8522_dig.c
index e63e17827..a78636286 100644
--- a/linux/drivers/media/dvb/frontends/au8522_dig.c
+++ b/linux/drivers/media/dvb/frontends/au8522_dig.c
@@ -617,6 +617,9 @@ int au8522_sleep(struct dvb_frontend *fe)
/* turn off led */
au8522_led_ctrl(state, 0);
+ /* Power down the chip */
+ au8522_writereg(state, 0xa4, 1 << 5);
+
state->current_frequency = 0;
return 0;