pop noise fix
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user