summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2007-04-14 02:00:44 +0000
committerChristian Gmeiner <christian.gmeiner@gmail.com>2007-04-14 02:00:44 +0000
commit3d6436e530cac4c8fe200c31e35e47fed572345e (patch)
treed17748708fc0d88a8be2259a07d34c35cbc03a8e /firmware
parent20c6bf50fe89c94e57ba7920d667ad28541c3ce1 (diff)
downloadrockbox-3d6436e530cac4c8fe200c31e35e47fed572345e.tar.gz
rockbox-3d6436e530cac4c8fe200c31e35e47fed572345e.tar.bz2
rockbox-3d6436e530cac4c8fe200c31e35e47fed572345e.zip
fix volume of left headphone
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13152 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-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 672087dbd0..643351623f 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 */
}
}