Extension units in descs now guarded by MAX_MIX_COUNT > 0

This commit is contained in:
Ross Owen
2014-01-22 21:55:14 +00:00
parent 98cf4a3208
commit 481e50fdf7
2 changed files with 2 additions and 2 deletions

View File

@@ -821,7 +821,7 @@ int AudioClassRequests_2(XUD_ep ep0_out, XUD_ep ep0_in, USB_SetupPacket_t &sp, c
if (usbSpeed == XUD_SPEED_FS) if (usbSpeed == XUD_SPEED_FS)
{ {
maxFreq = MAX_FREQ_A1; maxFreq = MAX_FREQ_FS;
} }
#endif #endif

View File

@@ -138,7 +138,7 @@ unsigned char devQualDesc_Null[] =
}; };
#if defined(MIXER) && !defined(AUDIO_PATH_XUS) #if defined(MIXER) && !defined(AUDIO_PATH_XUS) && (MAX_MIX_COUNT > 0)
#warning Extention units on the audio path are required for mixer. Enabling them now. #warning Extention units on the audio path are required for mixer. Enabling them now.
#define AUDIO_PATH_XUS #define AUDIO_PATH_XUS
#endif #endif