summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/as3514.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/firmware/drivers/as3514.c b/firmware/drivers/as3514.c
index 672087d..6433516 100644
--- a/firmware/drivers/as3514.c
+++ b/firmware/drivers/as3514.c
@@ -144,16 +144,21 @@ void audiohw_postinit(void)
/* Silently enable / disable audio output */
void audiohw_enable_output(bool enable)
{
+
+ int curr;
+
+ curr = as3514_regs[HPH_OUT_L];
+
if (enable)
{
/* reset the I2S controller into known state */
i2s_reset();
- as3514_write(HPH_OUT_L, 0xc0); /* Mute off, power on */
+ as3514_write(HPH_OUT_L, curr | 0xc0); /* Mute off, power on */
audiohw_mute(0);
} else {
audiohw_mute(1);
- as3514_write(HPH_OUT_L, 0x80); /* Mute on, power off */
+ as3514_write(HPH_OUT_L, curr | 0x80); /* Mute on, power off */
}
}