We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b958d4 commit 3d59d15Copy full SHA for 3d59d15
components/usb/usb_device_uac/usb_device_uac.c
@@ -505,8 +505,12 @@ esp_err_t uac_device_init(uac_device_config_t *config)
505
s_uac_device->spk_itf_num = config->spk_itf_num;
506
s_uac_device->mic_itf_num = config->mic_itf_num;
507
#else
508
+#if CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_RX
509
s_uac_device->spk_itf_num = ITF_NUM_AUDIO_STREAMING_SPK;
510
+#endif
511
+#if CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX
512
s_uac_device->mic_itf_num = ITF_NUM_AUDIO_STREAMING_MIC;
513
514
#endif
515
516
BaseType_t ret_val;
0 commit comments