LPC55S28 USB Aduio class is abnormal after modifying the format of audio data

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

LPC55S28 USB Aduio class is abnormal after modifying the format of audio data

594 次查看
MHY_0878
Contributor I

Hello NXP seniors, I have changed the format of USB audio data on the official SDK of LPC55S28.
My main problem is modifying the audio stream format type descriptor.
My idea is to change the number of bytes of data per channel of USB Aduio from 2 bytes to 3 bytes (from 16 bits of valid data to 24 bits of significant data).After changing the bSubframeSize (0x10 changed to 0x20), the speaker logo on the computer disappeared (the USB enumeration passed, but the function was not implemented).
I would like to know, the format changed from 16 bits, sample rate 48khz to 32 bits, sample rate 48khz, in addition to modifying the audio stream format type descriptor, where else to achieve my goal.
Attach my code.

0 项奖励
回复
2 回复数

584 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @MHY_0878,

The following community post has an example code for the RT1010 that shows the necessary changes for 24-bit audio through USB Audio Class. Please look into this example code, as the changes are the same for the LPC55s28: Solved: I.MX RT1010EVK USB Audio 24 bit ? - NXP Community

BR,
Edwin.

0 项奖励
回复

552 次查看
MHY_0878
Contributor I

Hello, I have downloaded your code according to your link, only changed the configuration descriptor and data format length, the computer can display 24 bit depth and 48kHz sample rate. But I used an I2S with an MCLK of 12.288Mhz, a BCLK of 3.072Mhz, and an LRCLK of 48khz to send the data from the PC to the MCU, and the sound of a shalala appeared after the data came out of the ADAU1761.

With my MCU code and SIGMA STUDIO project, this issue has been troubling me for several days. Could you please help me take a look?

0 项奖励
回复