diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-08-30 22:31:05 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-08-30 22:31:05 +0000 |
commit | e379225754b326806df1a037a7610e3b2c1a11bc (patch) | |
tree | f6fb3bad5bd172013c3c3ebcbe71e828df422cc9 /firmware/drivers/wm8731l.c | |
parent | c704db6b96dcf99cc8214a2c505ae7bee7fa9876 (diff) | |
download | rockbox-e379225754b326806df1a037a7610e3b2c1a11bc.tar.gz rockbox-e379225754b326806df1a037a7610e3b2c1a11bc.zip |
Fix volume being really low on H10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10815 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/wm8731l.c')
-rw-r--r-- | firmware/drivers/wm8731l.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/drivers/wm8731l.c b/firmware/drivers/wm8731l.c index 8fe572b1d9..f73de68b97 100644 --- a/firmware/drivers/wm8731l.c +++ b/firmware/drivers/wm8731l.c @@ -218,9 +218,17 @@ void wmcodec_enable_output(bool enable) /* 5. Set DACMU = 0 to soft-un-mute the audio DACs. */ wm8731_write(DACCTRL, 0x0); - + +#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) + /* We need to enable bit 4 of GPIOL for output for sound on H10 */ + GPIOL_OUTPUT_VAL |= 0x10; +#endif wmcodec_mute(0); } else { +#if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) + /* We need to disable bit 4 of GPIOL to disable sound on H10 */ + GPIOL_OUTPUT_VAL ^= 0x10; +#endif wmcodec_mute(1); } } |