forked from PAWPAW-Mirror/lib_xua
Merge pull request #175 from xmos/QuinnWang-patch-1
decouple update for DFU "fake" SET_SAMPLE_FREQ special processing
This commit is contained in:
@@ -748,6 +748,8 @@ void XUA_Buffer_Decouple(chanend c_mix_out
|
|||||||
outct(c_mix_out, SET_SAMPLE_FREQ);
|
outct(c_mix_out, SET_SAMPLE_FREQ);
|
||||||
outuint(c_mix_out, sampFreq);
|
outuint(c_mix_out, sampFreq);
|
||||||
|
|
||||||
|
if(sampFreq != AUDIO_STOP_FOR_DFU)
|
||||||
|
{
|
||||||
inUnderflow = 1;
|
inUnderflow = 1;
|
||||||
SET_SHARED_GLOBAL(g_aud_to_host_rdptr, aud_to_host_fifo_start);
|
SET_SHARED_GLOBAL(g_aud_to_host_rdptr, aud_to_host_fifo_start);
|
||||||
SET_SHARED_GLOBAL(g_aud_to_host_wrptr, aud_to_host_fifo_start);
|
SET_SHARED_GLOBAL(g_aud_to_host_wrptr, aud_to_host_fifo_start);
|
||||||
@@ -771,6 +773,7 @@ void XUA_Buffer_Decouple(chanend c_mix_out
|
|||||||
XUD_SetReady_OutPtr(aud_from_host_usb_ep, aud_from_host_fifo_start+4);
|
XUD_SetReady_OutPtr(aud_from_host_usb_ep, aud_from_host_fifo_start+4);
|
||||||
outOverflow = 0;
|
outOverflow = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Wait for handshake back and pass back up */
|
/* Wait for handshake back and pass back up */
|
||||||
chkct(c_mix_out, XS1_CT_END);
|
chkct(c_mix_out, XS1_CT_END);
|
||||||
@@ -780,6 +783,7 @@ void XUA_Buffer_Decouple(chanend c_mix_out
|
|||||||
|
|
||||||
ENABLE_INTERRUPTS();
|
ENABLE_INTERRUPTS();
|
||||||
|
|
||||||
|
if(sampFreq != AUDIO_STOP_FOR_DFU)
|
||||||
speedRem = 0;
|
speedRem = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user