forked from PAWPAW-Mirror/lib_xua
Add known pattern in underflow buffers
This commit is contained in:
@@ -772,6 +772,11 @@ void XUA_Buffer_Decouple(chanend c_mix_out
|
|||||||
aud_to_host_flag = 0;
|
aud_to_host_flag = 0;
|
||||||
SET_SHARED_GLOBAL(g_aud_to_host_flag, aud_to_host_flag);
|
SET_SHARED_GLOBAL(g_aud_to_host_flag, aud_to_host_flag);
|
||||||
|
|
||||||
|
for(int i=1; i<(MAX_DEVICE_AUD_PACKET_SIZE_IN >> 2); i++)
|
||||||
|
{
|
||||||
|
inZeroBuff[i] = 5678 << 8;
|
||||||
|
}
|
||||||
|
|
||||||
/* NOTE: For UAC2 IN EP not marked ready at this point - Initial size of zero buffer not known
|
/* NOTE: For UAC2 IN EP not marked ready at this point - Initial size of zero buffer not known
|
||||||
* since we don't know the USB bus-speed yet.
|
* since we don't know the USB bus-speed yet.
|
||||||
* The host will send a SetAltInterface before streaming which will lead to this core
|
* The host will send a SetAltInterface before streaming which will lead to this core
|
||||||
|
|||||||
@@ -833,13 +833,13 @@ void clockGen ( streaming chanend ?c_spdif_rx,
|
|||||||
if (adatUnderflow)
|
if (adatUnderflow)
|
||||||
{
|
{
|
||||||
/* ADAT underflowing, send out zero samples */
|
/* ADAT underflowing, send out zero samples */
|
||||||
g_digData[2] = 0;
|
g_digData[2] = 1234 << 8;
|
||||||
g_digData[3] = 0;
|
g_digData[3] = 1234 << 8;
|
||||||
g_digData[4] = 0;
|
g_digData[4] = 1234 << 8;
|
||||||
g_digData[5] = 0;
|
g_digData[5] = 1234 << 8;
|
||||||
g_digData[6] = 0;
|
g_digData[6] = 1234 << 8;
|
||||||
g_digData[7] = 0;
|
g_digData[7] = 1234 << 8;
|
||||||
g_digData[8] = 0;
|
g_digData[8] = 1234 << 8;
|
||||||
g_digData[9] = 0;
|
g_digData[9] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user