MK22FN512 USB Composite device Audio + CDC, microphone don't work in audio device...

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MK22FN512 USB Composite device Audio + CDC, microphone don't work in audio device...

768 次查看
evgeniyivanov
Contributor I

I am using SDK 2.5.0. Based on the example, I created a USB stack for a composite device AUDIO(speaker + microphone) + CDC(Vcom). For the basis, I took the example of usb_device_composite_hid_audio_unified_lite and replaced it HID on CDC. At first worked only CDC Virtual COM. I added IAD descriptor for Audio class. After that, the speaker began to work, but the microphone did not...    Audio in conjunction with HID or MSC works fully.

What could be the reason?

标签 (2)
0 项奖励
1 回复

562 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Andre,

I think you need to check descriptor (g_UsbDeviceConfigurationDescriptor). HID use 1 endpoint. But USB-CDC vcom use 3 endpoint. Their type are also different. You have to check new descriptor length, endpoint, and many things. If everything is correct, the computer should recognize a speaker device attached.

Regards,

Jing

0 项奖励