i.MX 93 BSP Manual PD24.1.1 Documentation Rev.: imx8mp-pd22.1.2-51-ga548be7d
[...]
pcm.asymed {
type asym
playback.pcm "softvol_pebav10"
capture.pcm "dsnoop"
}
[...]
7.15.4 Pulseaudio Conguration
For applications using Pulseaudio, check for available sinks:
target:~$ pactl list short sinks
To select the output device, type:
target:~$ pactl set-default-sink <sink_number>
7.15.5 Playback
Run speaker-test to check playback availability:
target:~$ speaker-test -c 2 -t wav
To playback simple audio streams, you can use aplay. For example to play the ALSA test sounds:
target:~$ aplay /usr/share/sounds/alsa/*
To playback other formats like mp3 for example, you can use Gstreamer:
target:~$ gst-launch-1.0 playbin uri=file:/path/to/file.mp3
7.15.6 Capture
arecord is a command-line tool for capturing audio streams which use Line In as the default input source.
To select a dierent audio source you can use alsamixer. For example, switch on Right PGA Mixer Mic3R
and Left PGA Mixer Mic3R in order to capture the audio from the microphone input of the TLV320-Codec
using the 3.5mm jack.
target:~$ amixer -c "sndpebav10" sset 'Left PGA Mixer Mic3R' on
target:~$ amixer -c "sndpebav10" sset 'Right PGA Mixer Mic3R' on
target:~$ arecord -t wav -c 2 -r 44100 -f S16_LE test.wav
Hint
Since playback and capture share hardware interfaces, it is not possible to use dierent sampling rates
and formats for simultaneous playback and capture operations.
Accessing Peripherals 69