From: Devin Heitmueller Date: Wed, 11 Mar 2009 06:00:34 +0000 (-0300) Subject: V4L/DVB (11063): au8522: power down the digital demod when not in use X-Git-Tag: v3.0~10247^2~202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7bf63eda681e095ca3c39d075354053107febf80;p=platform%2Fkernel%2Flinux-amlogic.git V4L/DVB (11063): au8522: power down the digital demod when not in use When the au8522 is idle, put the chip into a low power mode (reduces power consumption from 450ma to 346ma) Thanks to Michael Krufky and Steven Toth for providing sample hardware, engineering level support, and testing. Signed-off-by: Devin Heitmueller Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/au8522_dig.c b/drivers/media/dvb/frontends/au8522_dig.c index 17bdbe2..fa3ecbe 100644 --- a/drivers/media/dvb/frontends/au8522_dig.c +++ b/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;