diff options
Diffstat (limited to 'firmware/drivers/audio/uda1380.c')
-rw-r--r-- | firmware/drivers/audio/uda1380.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/firmware/drivers/audio/uda1380.c b/firmware/drivers/audio/uda1380.c index e76b08a429..a0e7ef56d8 100644 --- a/firmware/drivers/audio/uda1380.c +++ b/firmware/drivers/audio/uda1380.c | |||
@@ -193,17 +193,6 @@ static int audiohw_set_regs(void) | |||
193 | return 0; | 193 | return 0; |
194 | } | 194 | } |
195 | 195 | ||
196 | /* Silently enable / disable audio output */ | ||
197 | void audiohw_enable_output(bool enable) | ||
198 | { | ||
199 | if (enable) { | ||
200 | uda1380_write_reg(REG_PWR, uda1380_regs[REG_PWR] | PON_DAC | PON_HP); | ||
201 | } else { | ||
202 | uda1380_write_reg(REG_MUTE, MUTE_MASTER); | ||
203 | uda1380_write_reg(REG_PWR, uda1380_regs[REG_PWR] & ~PON_DAC); | ||
204 | } | ||
205 | } | ||
206 | |||
207 | static void reset(void) | 196 | static void reset(void) |
208 | { | 197 | { |
209 | #ifdef IRIVER_H300_SERIES | 198 | #ifdef IRIVER_H300_SERIES |
@@ -278,8 +267,9 @@ void audiohw_postinit(void) | |||
278 | /* Sleep a while so the power can stabilize (especially a long | 267 | /* Sleep a while so the power can stabilize (especially a long |
279 | delay is needed for the line out connector). */ | 268 | delay is needed for the line out connector). */ |
280 | sleep(HZ); | 269 | sleep(HZ); |
270 | |||
281 | /* Power on FSDAC and HP amp. */ | 271 | /* Power on FSDAC and HP amp. */ |
282 | audiohw_enable_output(true); | 272 | uda1380_write_reg(REG_PWR, uda1380_regs[REG_PWR] | PON_DAC | PON_HP); |
283 | 273 | ||
284 | /* UDA1380: Unmute the master channel | 274 | /* UDA1380: Unmute the master channel |
285 | (DAC should be at zero point now). */ | 275 | (DAC should be at zero point now). */ |