Hello,
ALSA device list:
#0: rt5640-audio
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: rt5640audio [rt5640-audio], device 0: HiFi rt5640-aif1-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
With codec master mode, when I use aplay to play a WAV file, there is a signal on AUD_TXD on the oscilloscope.
The codec seeing looks correct and the whole DAPM route is already on, but I still don't get any sound. According to the I2S registers, is there anything that looks suspicious?
Hello,
SSI2_SCR seems to be correctly configured, it is in slave mode and when you read the register it was transferring data.
SSI2_STCR seems to be correctly configured, it has FIFOs enabled and is taking frame-sync and clock signal from CODEC configured as master.
SSI2_STCCR is using a 16 bit word length, please check that configuration in CODEC driver and supported word length in your device.
CCM_CCGR5 SSI2 clock is enabled.
Best regards.
Wednesday, October 9, 2024
10:56 AM
Hello,
The RT5640 audio CODEC is not supported by default on our BSP. To use this CODEC to your system, maybe you need to add a third-party driver provided by CODEC manufacturer and configure your device tree.
Unfortunately, there is no a guide to port this specific CODEC to the BSP. The references we have are the i.MX porting guide and EVK device tree (WM8962).
Please check if the card is being numbered during kernel booting and if you get some error at playing.
Also, you may use alsamixer command to adjust the volume and turn on some switches (depends on your audio codec driver).
Best regards.