EasyManua.ls Logo

Phytec i.MX 93 - Audio on Phyboard-Nash

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
7.14.3 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
If Speaker volume it too low you can increase its volume with (values 0-3):
target:~$ amixer -c 0 sset Class-D 3
Hint
Speaker output is only mono so when stereo track is played only left channel will be played by speaker.
7.14.4 Capture
arecord is a command-line tool for capturing audio streams which use Line In as the default input source.
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 dierent sampling rates
and formats for simultaneous playback and capture operations.
Device Tree Audio conguration: https://git.phytec.de/linux-imx/tree/arch/arm64/boot/dts/freescale/
imx93-phyboard-segin.dts?h=v6.1.55_2.2.0-phy3#n62
7.15 Audio on phyBOARD-Nash
Warning
Due to HW bug Audio is broken on phyBOARD-Nash i.MX 93 PCB revision: 1616.0
To use audio with phyBOARD-Nash an additional adapter for the Audio/Video connector is needed. The
PEB-AV-10 (1531.1 revision) can be bought separately to the Kit. PEB-AV-10 is populated with a TI
TLV320AIC3007 audio codec. Audio support is done via the I2S interface and controlled via I2C.
There is a 3.5mm headset jack with OMTP standard and an 8-pin header to connect audio devices with the
AV-Connector. The 8-pin header contains a mono speaker, headphones, and line-in signals.
To check if your soundcard driver is loaded correctly and what the device is called, type for playback devices:
Accessing Peripherals 67