Change the number of audio channels in example

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

Change the number of audio channels in example

1,425 次查看
MrRv
Contributor II

I am working on the "composite_audio_multi_ch_unified" example on BM.

I would like to change the number of channels in each direction to 8.

In the file "usb_device_descriptor.h" are the macros "AUDIO_IN_FORMAT_CHANNELS" and "AUDIO_OUT_FORMAT_CHANNELS", which are set to 0x10 by default, however, when I attempted to change them to 0x08 and connect to my PC, the device is not recognized at all.

In the device manager the PC recognizes the device, however when opening the properties, it says:

This device cannot start. (Code 10)

The specified range could not be found in the range list.

 

Is there something I'm missing regarding this?

标签 (2)
0 项奖励
回复
6 回复数

1,394 次查看
PabloAvalos
NXP TechSupport
NXP TechSupport

Dear @MrRv 

 

Which i.MX RT you are using with that example?

 

Hope you may clarify me that part, I would appreciate it.

 

BR.
Pablo Avalos.

0 项奖励
回复

1,389 次查看
MrRv
Contributor II
I'm working on the iMX RT685 board.
0 项奖励
回复

1,378 次查看
PabloAvalos
NXP TechSupport
NXP TechSupport

Dear @MrRv 

 

Thanks a lot for letting me know the part number used.

 

After taking a view, I think you are in the wrong way by changing those macros. I am not understanding so far why do you want to change the number of channels of each direction to 8 , may you explain me which is your intention?

Also, I would like to suggest you to check readme.pdf file that comes within the SDK folder from this example, you might find it on this similar path: "...\Downloads\SDK_2_12_0_EVK-MIMXRT685.zip\boards\evkmimxrt685\usb_examples\usb_device_composite_hid_audio_unified\bm"

 

After looking at that, please let me know if you still have problems.

 

Have a Happy New Year Holiday.
Best Regards.
Pablo Avalos.

0 项奖励
回复

1,361 次查看
MrRv
Contributor II

Hello @PabloAvalos ,

Thank you for the reply.

My intention with changing the number of USB channels is to read 1 channel fo audio from the PC via USB, pass it to a process on the DSP unit along with 8 audio channels read from the DMic, receive from the processed audio from the DSP process, and send 8 audio channels to the PC via USB.

I looked over the readme file and unfortunately I did no find a way to edit the number of USB channels there.

 

0 项奖励
回复

1,342 次查看
PabloAvalos
NXP TechSupport
NXP TechSupport

Dear @MrRv 

 

Thanks a lot for letting me know and for the clarification.

 

Just to see if I understood correct, you are trying to do something like this?

PabloAvalos_0-1674000421883.png

 

Additionally, I found a post that might be so helpful for your needs, please let me know if that helps you.

https://community.nxp.com/t5/MCUXpresso-Config-Tools/USB-Audio-Class-Tutorial/ta-p/1344785

 

Thanks for your patience. Let me know if you need something more I can help you with and I will stay tuned for your clarification on the case.

 

Best Regards.
Pablo Avalos.

0 项奖励
回复

1,333 次查看
MrRv
Contributor II

Hello @PabloAvalos ,

A diagram of what I am trying to do:

MrRv_0-1674389296463.png

 

Thank you for sharing the post with me, I will look it over.

 

Best regards,

MrRv

0 项奖励
回复