Difference between revisions of "Audio(ROM-5880)"

From ESS-WIKI
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
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.)
 
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.)
  
[[File:SOM-DB2510 CN17.PNG|RTENOTITLE]][[File:SOM-DB2510 SW3.PNG|RTENOTITLE]]<br/> Set the default audio output when playing media files, if it supports audio.<br/> 1. Entry start->Sound & Video->PulseAudio Volume Control.
+
[[File:SOM-DB2510 CN17.PNG|RTENOTITLE]][[File:SOM-DB2510 SW3.PNG|RTENOTITLE]]
  
[[File:ROM-5880 Audio HDMI.png]]<br/> 2. Select “Build-in Audio stereo” for HDMI output or Select “Build-in Audio Speaker&nbsp;…” for rt5640-codec output.
+
=== '''Step 1:HDMI''' ===
  
[[File:ROM-5880 Audio HDMI 1.png]]
+
Set the default audio output when playing media files, if it supports audio.<br/> 1. Entry start->Sound & Video->PulseAudio Volume Control.
 +
 
 +
[[File:ROM-5880 Audio HDMI.png|RTENOTITLE]]<br/> 2. Select “Build-in Audio stereo” for HDMI output or Select “Build-in Audio Speaker&nbsp;…” for rt5640-codec output.
 +
 
 +
[[File:ROM-5880 Audio HDMI 1.png|RTENOTITLE]]
 +
 
 +
=== '''Step 2:Audio codec''' ===
 +
 
 +
1. Get sound card ID.
 +
<pre># cat /proc/asound/cards
 +
0 [rockchiphdmi ]: rockchip_hdmi - rockchip,hdmi
 +
rockchip,hdmi
 +
1 [rockchiprt5640c]: rockchip_rt5640 - rockchip,rt5640-codec
 +
rockchip,rt5640-codec</pre>
 +
 
 +
2. Record(0/1->rt5640-codec)
 +
 
 +
Take Card ID 1 for example:
 +
<pre># arecord -Dplughw:1,0 -f S16_LE -r 16000 -d 10 -t wav test.wav</pre>
 +
 
 +
3. Playback
 +
 
 +
Take Card ID 1 for example:
 +
<pre># aplay -Dplughw:1,0 -t wav test.wav</pre>

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.)

RTENOTITLERTENOTITLE

Step 1:HDMI

Set the default audio output when playing media files, if it supports audio.
1. Entry start->Sound & Video->PulseAudio Volume Control.

RTENOTITLE
2. Select “Build-in Audio stereo” for HDMI output or Select “Build-in Audio Speaker …” for rt5640-codec output.

RTENOTITLE

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