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:
Dana Conrad 2025-12-10 01:36:22 +00:00 committed by Solomon Peachy
parent a30f822500
commit 75df18f2c1

View file

@ -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 */