Initial speed based slotsize setting now also guarded by FULL_SPEED_AUDIO2

This commit is contained in:
Ross Owen
2013-09-13 23:37:58 +01:00
parent 13c0668536
commit 068675b126

View File

@@ -136,7 +136,7 @@ void handle_audio_request(chanend c_mix_out)
asm("ldw %0, dp[g_curUsbSpeed]" : "=r" (usb_speed) :);
/* slotSize different for Audio Class 1.0/2.0. */
#if defined(AUDIO_CLASS_FALLBACK)
#if defined(AUDIO_CLASS_FALLBACK) || defined (FULL_SPEED_AUDIO_2)
if (usb_speed == XUD_SPEED_HS)
{
slotSize = 4; /* 4 bytes per sample */