L-1017e.A3 i.MX 8M Plus BSP Manual
[...]
pcm.asymed {
type asym
playback.pcm
"pebav10"
capture.pcm
"dsnoop"
}
[...]
Pulseaudio Configuration
For applications using
Pulseaudio,
check for available sinks:
target$ pactl list
short
cards
0
alsa_card.platform-snd_dummy.
0
module-alsa-card.c
1
alsa_card.platform-sound-hdmi module-alsa-card.c
2
alsa_card.platform-sound-peb-av-
10
module-alsa-card.c
To select
PEB-AV-10,
type:
target$ pactl set-
default
-sink
2
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
Capture
arecord
is a command-line tool for capturing audio streams which use
Line In
as the default input source. To select a
different 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.