mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-01-22 01:30:35 -05:00
FS#13712: ErosQ: move all of sound hw init to audiohw_init()
Fixes voice not working after booting but before starting music playback while line-out is plugged in. Doesn't seem to break anything on hw1 or hw4. Change-Id: I7b830adeeceae621177c94353e4814aa6ad0e1ec
This commit is contained in:
parent
a30f822500
commit
75df18f2c1
1 changed files with 5 additions and 3 deletions
|
|
@ -64,10 +64,7 @@ void audiohw_init(void)
|
|||
/* power on DAC and HP Amp */
|
||||
gpio_set_level(GPIO_DAC_ANALOG_PWR, 1);
|
||||
gpio_set_level(GPIO_HPAMP_POWER, 1);
|
||||
}
|
||||
|
||||
void audiohw_postinit(void)
|
||||
{
|
||||
/*
|
||||
* enable playback, fill FIFO buffer with -1 to prevent
|
||||
* the DAC from auto-muting, wait, and then stop playback.
|
||||
|
|
@ -139,6 +136,11 @@ void audiohw_postinit(void)
|
|||
}
|
||||
}
|
||||
|
||||
void audiohw_postinit(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void audiohw_close(void)
|
||||
{
|
||||
/* mute - attempt to make power-off pop-free */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue