diff options
Diffstat (limited to 'firmware')
-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) | |||
218 | 218 | ||
219 | /* 5. Set DACMU = 0 to soft-un-mute the audio DACs. */ | 219 | /* 5. Set DACMU = 0 to soft-un-mute the audio DACs. */ |
220 | wm8731_write(DACCTRL, 0x0); | 220 | wm8731_write(DACCTRL, 0x0); |
221 | 221 | ||
222 | #if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) | ||
223 | /* We need to enable bit 4 of GPIOL for output for sound on H10 */ | ||
224 | GPIOL_OUTPUT_VAL |= 0x10; | ||
225 | #endif | ||
222 | wmcodec_mute(0); | 226 | wmcodec_mute(0); |
223 | } else { | 227 | } else { |
228 | #if defined(IRIVER_H10) || defined(IRIVER_H10_5GB) | ||
229 | /* We need to disable bit 4 of GPIOL to disable sound on H10 */ | ||
230 | GPIOL_OUTPUT_VAL ^= 0x10; | ||
231 | #endif | ||
224 | wmcodec_mute(1); | 232 | wmcodec_mute(1); |
225 | } | 233 | } |
226 | } | 234 | } |