From 18cef82b06ffcdad49b2e7a9b2954f7456a19640 Mon Sep 17 00:00:00 2001 From: Keith Au Date: Thu, 13 Feb 2020 15:48:46 +0800 Subject: [PATCH] modified to have USB out frequency be informed to c_audioControl after getting EP0 request --- lib_xua/src/core/endpoint0/xua_ep0_uacreqs.xc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib_xua/src/core/endpoint0/xua_ep0_uacreqs.xc b/lib_xua/src/core/endpoint0/xua_ep0_uacreqs.xc index 0346809b..7226f4ec 100644 --- a/lib_xua/src/core/endpoint0/xua_ep0_uacreqs.xc +++ b/lib_xua/src/core/endpoint0/xua_ep0_uacreqs.xc @@ -1147,8 +1147,8 @@ int AudioEndpointRequests_1(XUD_ep ep0_out, XUD_ep ep0_in, USB_SetupPacket_t &sp else{ //if sp.wIndex == ENDPOINT_ADDRESS_OUT_AUDIO g_curUSBout_SamFreq = newSampleRate; /* Instruct audio thread to change sample freq */ - //outuint(c_audioControl, SET_SAMPLE_FREQ); - //outuint(c_audioControl, g_curUSBout_SamFreq); // FIXME: not implemented yet + outuint(c_audioControl, SET_SAMPLE_FREQ); + outuint(c_audioControl, g_curUSBout_SamFreq); } /* Wait for handshake back - i.e. pll locked and clocks okay */