update g_curSubSlot_Out and g_curSubSlot_In under #if USB_DESCRIPTOR_OVERRIDE_RATE_RES

This commit is contained in:
shuchitak
2020-02-18 10:20:25 +00:00
parent 050d7757bc
commit c63df2e961

View File

@@ -165,8 +165,10 @@ int g_maxPacketSize = MAX_DEVICE_AUD_PACKET_SIZE_IN_FS;
void handle_audio_request(chanend c_mix_out) void handle_audio_request(chanend c_mix_out)
{ {
int space_left; int space_left;
#if(defined USB_DESCRIPTOR_OVERRIDE_RATE_RES)
g_curSubSlot_Out = get_usb_to_device_bit_res() >> 3; g_curSubSlot_Out = get_usb_to_device_bit_res() >> 3;
g_curSubSlot_In = get_device_to_usb_bit_res() >> 3; g_curSubSlot_In = get_device_to_usb_bit_res() >> 3;
#endif
/* Input word that triggered interrupt and handshake back */ /* Input word that triggered interrupt and handshake back */
unsigned underflowSample = inuint(c_mix_out); unsigned underflowSample = inuint(c_mix_out);