Quick notes on testing audio on the i.MX 8QuadMax MEK board with 4.19.35-1.1.0 BSP.
Hardware:
- Connect the MCIMX8QM-CPU to the MCIMX8-8X-BB.
- Connect the IMX-AUD-IO to the Audio Slot 1 on the MCIMX8-8X-BB.
- Short 2 and 3 on J47 on the MCIMX8-8X-BB
- Connect an external powered speaker to RCA connectors Audio OUT FR and/or Audio OUT FL on the IMX-AUD-IO
- Optionally, connect a headphone on J15 on the MCIMX8QM-CPU
Test:
Power on the board.
aplay -l shows the audio interface available.
root@imx8qmmek:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: cs42888audio [cs42888-audio], device 0: HiFi cs42888-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: cs42888audio [cs42888-audio], device 1: HiFi-ASRC-FE (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: wm8960audio [wm8960-audio], device 0: HiFi wm8960-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: imxaudmix [imx-audmix], device 0: HiFi-AUDMIX-FE (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: imxaudmix [imx-audmix], device 1: HiFi-AUDMIX-FE (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
Play file on powered speaker via cs42888:
root@imx8qmmek:~# aplay -Dhw:0,0 test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Play file on headphone via wm8960:
root@imx8qmmek:~# aplay -Dhw:1,0 test.wav