I2S (Sound)
There is one I2S interface available on conga-QMX6 modules. The BSP supports SGTL5000 based sound cards connected to the I2S interface.
In order to enable sound, some mixer settings have to be adjusted:
# amixer set Headphone 100%
# amixer set PCM 100%
# amixer set Lineout 100%
# amixer set Mic 100%
# amixer set Lineout on
Test sound output:
# aplay /unit_tests/ASRC/audio8k16S.wav
# aplay --device=sysdefault:cgtqmx6sgtl5000 /unit_tests/ASRC/audio8k16S.wav
Recording:
For testing purpose use the loopback mode, ie. play sound and record them directly. Enable loopback-mode on congatec ACC2 SGTL5000 audio codec card with Jumpers on X6: set them to 1-2 (default: 2-3). Then do:
# aplay /unit_tests/ASRC/audio8k16S.wav & arecord -vv -fdat recording.wav
HDMI Sound
As an additional sound output HDMI could be used (if connected).
Test sound output:
# aplay --device=sysdefault:imxhdmisoc /unit_tests/ASRC/audio8k16S.wav