pop noise fix

This commit is contained in:
Steven Dan
2026-03-26 17:17:41 +08:00
parent b7e21b5fc7
commit 5d6cd95ed9

View File

@@ -1617,13 +1617,22 @@ void AudioHwInit()
/* Configures the external audio hardware for the required sample frequency */
void AudioHwConfig(unsigned samFreq, unsigned mClk, unsigned dsdMode, unsigned sampRes_DAC, unsigned sampRes_ADC)
{
static unsigned count = 0;
g_samfreq = samFreq;
{
sw_pll_fixed_clock(mClk);
}
p_ctl_mute <: 1;
// 通知tile0 (button_task) 采样率已变化用于配置NAU88C22寄存器
unsafe {uc_audiohw <: samFreq; }
unsafe {uc_audiohw <: dsdMode; }
}
if (count++ > 0)
{
p_ctl_mute <: 1;
}
else
{
debug_printf("don't unmute at boot\n");
}
}