Changes

Jump to: navigation, search

Orange Pi CM4

112 bytes added, 17:25, 18 September 2023
Headphone interface audio playback test
<p>[[File:cm4-img251.png]]</p></li>
<li><p>Then you can use the '''aplay -l''' command to check the sound card devices supported by the Linux system. From the output below, we can see that '''card 0''' is the sound card device of rk809, which is the sound card device of the headset.</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''aplay -l'''</p>
<p>**** List of PLAYBACK Hardware Devices ****</p>
<p>'''card 0: rockchiprk809 [rockchip-rk809], device 0: dailink-multicodecs rk817-hifi-0 [dailink-multicodecs rk817-hifi-0]'''</p>
:<p>'''Subdevices: 0/1'''</p>:<p>'''Subdevice #0: subdevice #0'''</p>
<p>card 1: rockchiphdmi [rockchip,hdmi], device 0: fe400000.i2s-i2s-hifi i2s-hifi-0 [fe400000.i2s-i2s-hifi i2s-hifi-0]</p>
:<p>Subdevices: 0/1</p>:<p>Subdevice #0: subdevice #0</p>:<p>Subdevice #0: subdevice #0</p>|}</li>
<li><p>Then use the '''aplay''' command to play the audio file that comes with the system. If the headset can hear the sound, it means that the hardware can be used normally.</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>orangepi@orangepi:~$ '''aplay -D hw:0,0 /usr/share/sounds/alsa/audio.wav'''</p>
<p>Playing WAVE 'audio.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo</p>|}</li></ol>
<span id="hdmi-audio-playback-test"></span>
 
==== HDMI audio playback test ====

Navigation menu