modified to have USB out frequency be informed to c_audioControl after getting EP0 request

This commit is contained in:
Keith Au
2020-02-13 15:48:46 +08:00
parent 23cf086b84
commit 18cef82b06

View File

@@ -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 */