EasyManua.ls Logo

Phytec i.MX 93 - Page 72

Default Icon
85 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i.MX 93 BSP Manual PD24.1.1 Documentation Rev.: imx8mp-pd22.1.2-51-ga548be7d
target:~$ aplay -L
Or type for recording devices:
target:~$ arecord -L
7.15.1 Alsamixer
To inspect the capabilities of your soundcard, call:
target:~$ alsamixer
You should see a lot of options as the audio-IC has many features you can experiment with. It might be
better to open alsamixer via ssh instead of the serial console, as the console graphical eects are better. You
have either mono or stereo gain controls for all mix points. “MM” means the feature is muted (both output,
left & right), which can be toggled by hitting m. You can also toggle by hitting < for left and > for
right output. With the tab key, you can switch between controls for playback and recording.
7.15.2 Restore default volumes
There are some default settings stored in /var/lib/alsa/asound.state. You can save your current alsa
settings with:
target:~$ alsactl --file </path/to/filename> store
You can restore saved alsa settings with:
target:~$ alsactl --file </path/to/filename> restore
7.15.3 ALSA conguration
Our BSP comes with a ALSA conguration le /etc/asound.conf.
The ALSA conguration le can be edited as desired or deleted since it is not required for ALSA to work
properly.
target:~$ vi /etc/asound.conf
To set PEB-AV-10 as output, set playback.pcm from “dummy” to “pebav10”:
[...]
pcm.asymed {
type asym
playback.pcm "pebav10"
capture.pcm "dsnoop"
}
[...]
If the sound is not audible change playback devices to the software volume control playback devices, set
playback.pcm to the respective softvol playback device e.g. “softvol_pebav10”. Use alsamixer controls to
vary the volume levels.
Accessing Peripherals 68