Difference between revisions of "Audio(ROM-5880)"
From ESS-WIKI
Xingxing.li (talk | contribs) |
Xingxing.li (talk | contribs) |
||
Line 11: | Line 11: | ||
[[File:ROM-5880 Audio HDMI 1.png|RTENOTITLE]] | [[File:ROM-5880 Audio HDMI 1.png|RTENOTITLE]] | ||
− | |||
=== '''Step 2:Audio codec''' === | === '''Step 2:Audio codec''' === |
Latest revision as of 03:45, 5 December 2023
ROM-5880 supports 2 sound cards: 0 hdmi (with Audio), 1 rt5640-codec. (Connect Audio boardROM-EG57 on CN17 of SOM-DB2510 carrier board, set SW3 to 2.)
Step 1:HDMI
Set the default audio output when playing media files, if it supports audio.
1. Entry start->Sound & Video->PulseAudio Volume Control.
2. Select “Build-in Audio stereo” for HDMI output or Select “Build-in Audio Speaker …” for rt5640-codec output.
Step 2:Audio codec
1. Get sound card ID.
# cat /proc/asound/cards 0 [rockchiphdmi ]: rockchip_hdmi - rockchip,hdmi rockchip,hdmi 1 [rockchiprt5640c]: rockchip_rt5640 - rockchip,rt5640-codec rockchip,rt5640-codec
2. Record(0/1->rt5640-codec)
Take Card ID 1 for example:
# arecord -Dplughw:1,0 -f S16_LE -r 16000 -d 10 -t wav test.wav
3. Playback
Take Card ID 1 for example:
# aplay -Dplughw:1,0 -t wav test.wav