deliver thread no longer waits for AUDIO_PLL_LOCK_DELAY - this was causing pop issues on rate change as DAC has mclk but no bclk/lrclk. This seems to cause issues. This delay now added to audio SF change in EP0 for safety. Related to BUG #14769

This commit is contained in:
Ross Owen
2014-01-20 18:13:54 +00:00
parent e53de21f7a
commit 8712acb539
2 changed files with 14 additions and 9 deletions

View File

@@ -948,11 +948,16 @@ void audio(chanend c_mix_out, chanend ?c_dig_rx, chanend ?c_config, chanend ?c)
/* No delay for DFU modes */
if ((curSamFreq != AUDIO_REBOOT_FROM_DFU) && (curSamFreq != AUDIO_STOP_FOR_DFU) && retVal1)
{
timer t;
unsigned time;
t :> time;
t when timerafter(time+AUDIO_PLL_LOCK_DELAY) :> void;
#if 0
/* User should ensure MCLK is stable in AudioHwConfig */
if(retVal1 == SET_SAMPLE_FREQ)
{
timer t;
unsigned time;
t :> time;
t when timerafter(time+AUDIO_PLL_LOCK_DELAY) :> void;
}
#endif
/* Handshake back */
outct(c_mix_out, XS1_CT_END);
}