summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMihail Zenkov <mihail.zenkov@gmail.com>2016-02-01 03:20:06 +0000
committerMihail Zenkov <mihail.zenkov@gmail.com>2016-02-01 03:20:06 +0000
commit840dacc718ca8e0785542a14a164d7c6b2ae1983 (patch)
tree74ccdb534799923095ea089a843079c6a269d2c2
parente2f943f2294a98abc8bb25b3dd7f485444dad731 (diff)
downloadrockbox-840dacc.tar.gz
rockbox-840dacc.zip
AS3543: Fix increasing noise and power consumption if booted through rolo
Change-Id: I99fe6d09b15689e5dd0179714bbe363aed922d10
-rw-r--r--firmware/drivers/audio/as3514.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/drivers/audio/as3514.c b/firmware/drivers/audio/as3514.c
index 11eb14cf75..2d69395d37 100644
--- a/firmware/drivers/audio/as3514.c
+++ b/firmware/drivers/audio/as3514.c
@@ -130,6 +130,8 @@ void audiohw_preinit(void)
ascodec_readbytes(0x0, AS3514_NUM_AUDIO_REGS, as3514_regs);
#ifdef HAVE_AS3543
+ /* Prevent increasing noise and power consumption if booted through rolo */
+ as3514_write(AS3514_HPH_OUT_L, 0x0);
as3514_write(AS3514_AUDIOSET1, AUDIOSET1_DAC_on);
as3514_write(AS3514_AUDIOSET2, AUDIOSET2_SUM_off | AUDIOSET2_AGC_off | AUDIOSET2_HPH_QUALITY_LOW_POWER);