Commit b6a3bbbf authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Juha Yrjola

ARM: OMAP: Fix AIC23 sleep power consumption on N770

If power down command to AIC23 is sent after the clocks are stopped,
the chip remains in a state where it's consuming some extra milliamps.
Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: default avatarJuha Yrjola <juha.yrjola@nokia.com>
parent adee4c09
......@@ -194,6 +194,7 @@ static void codec_delayed_power_down(void *arg)
down(&audio_pwr_sem);
if (audio_pwr_state == -1)
tlv320aic23_power_down();
clk_disable(dspxor_ck);
up(&audio_pwr_sem);
}
......@@ -201,8 +202,6 @@ static DECLARE_WORK(codec_power_down_work, codec_delayed_power_down, NULL);
static void nokia770_audio_pwr_down(void)
{
clk_disable(dspxor_ck);
/* Turn off amplifier */
omap_set_gpio_dataout(AMPLIFIER_CTRL_GPIO, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment