From a9f4f51f033d5c4140ac6c456689f9c227e33819 Mon Sep 17 00:00:00 2001 From: Shuchita Khare Date: Mon, 20 May 2024 14:34:23 +0100 Subject: [PATCH] Remove underflow debug stuff --- lib_xua/src/core/buffer/decouple/decouple.xc | 5 ----- lib_xua/src/core/clocking/clockgen.xc | 14 +++++++------- 2 files changed, 7 insertions(+), 12 deletions(-) diff --git a/lib_xua/src/core/buffer/decouple/decouple.xc b/lib_xua/src/core/buffer/decouple/decouple.xc index 4276d493..c4a6566c 100644 --- a/lib_xua/src/core/buffer/decouple/decouple.xc +++ b/lib_xua/src/core/buffer/decouple/decouple.xc @@ -769,11 +769,6 @@ void XUA_Buffer_Decouple(chanend c_mix_out aud_to_host_flag = 0; 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 * since we don't know the USB bus-speed yet. * The host will send a SetAltInterface before streaming which will lead to this core diff --git a/lib_xua/src/core/clocking/clockgen.xc b/lib_xua/src/core/clocking/clockgen.xc index 55c14baf..ac172b8f 100644 --- a/lib_xua/src/core/clocking/clockgen.xc +++ b/lib_xua/src/core/clocking/clockgen.xc @@ -833,13 +833,13 @@ void clockGen ( streaming chanend ?c_spdif_rx, if (adatUnderflow) { /* ADAT underflowing, send out zero samples */ - g_digData[2] = 1234 << 8; - g_digData[3] = 1234 << 8; - g_digData[4] = 1234 << 8; - g_digData[5] = 1234 << 8; - g_digData[6] = 1234 << 8; - g_digData[7] = 1234 << 8; - g_digData[8] = 1234 << 8; + g_digData[2] = 0; + g_digData[3] = 0; + g_digData[4] = 0; + g_digData[5] = 0; + g_digData[6] = 0; + g_digData[7] = 0; + g_digData[8] = 0; g_digData[9] = 0; } else