8,367
edits
Changes
→Headphone interface playback audio test
<p>[[File:media/image299.png|365x89px]]</p></li>
<li><p>Then you can use the '''aplay -l''' command to view the sound card devices supported by the linux system. From the output below, you can see that '''card 3''' is the sound card device of es8388, that 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: rockchipdp0 [rockchip,dp0], device 0: rockchip,dp0 spdif-hifi-0 [rockchip,dp0 spdif-hifi-0]</p>
:<p>Subdevices: 0/1</p>:<p>Subdevice #0: subdevice #0</p>
<p>card 1: rockchiphdmi0 [rockchip-hdmi0], device 0: rockchip-hdmi0 i2s-hifi-0 [rockchip-hdmi0 i2s-hifi-0]</p>
:<p>Subdevices: 0/1</p>:<p>Subdevice #0: subdevice #0</p>
<p>card 2: rockchiphdmi1 [rockchip-hdmi1], device 0: rockchip-hdmi1 i2s-hifi-0 [rockchip-hdmi1 i2s-hifi-0]</p>
:<p>Subdevices: 1/1</p>:<p>Subdevice #0: subdevice #0</p>
<p>'''card 3: rockchipes8388 [rockchip,es8388], device 0: dailink-multicodecs ES8323.7-0011-0 [dailink-multicodecs ES8323.7-0011-0]'''</p>
:<p>'''Subdevices: 0/1'''</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 earphone 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:3,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="speaker-interface-playback-audio-test"></span>
==== Speaker interface playback audio test ====