Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 5 Plus

233 bytes added, 17:29, 6 June 2023
HDMI audio playback test
<li><p>First use the HDMI to HDMI cable to connect the Orange Pi development board to the TV (other HDMI monitors need to ensure that they can play audio)</p></li>
<li><p>Then check the serial number of the HDMI sound card. From the output below, you can know that the sound card of HDMI_TX1 is '''card 1''', and the sound card of HDMI_TX2 is '''card 2'''</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: 1/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: 1/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>|}</li>
<li><p>Then use the '''aplay''' command to play the audio file that comes with the system. If the HDMI monitor or TV can hear the sound, it means that the hardware can be used normally.</p>
<ol style="list-style-type: lower-alpha;">
<li><p>The command to play audio to HDMI_TX1 is as follows:</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~$ '''aplay -D hw:<span style="color:#FF0000">1</span>,0 /usr/share/sounds/alsa/audio.wav'''</p>|}</li>
<li><p>The command to play audio to HDMI_TX2 is as follows:</p>
{| class="wikitable" style="width:800px;" |-|<p>orangepi@orangepi:~$ '''aplay -D hw:<span style="color:#FF0000">2</span>,0 /usr/share/sounds/alsa/audio.wav'''</p>|}</li></ol>
</li></ol>
<span id="method-of-using-commands-to-test-recording"></span>
 
=== Method of using commands to test recording ===