Difference between revisions of "ROM-6881 Audio"

From ESS-WIKI
Jump to: navigation, search
(Created page with " === '''Audio Test''' === Before the test, you need to prepare an audio card (ROM-EG57), a microphone and headphones. The test environment is shown in the picture below: F...")
 
Line 4: Line 4:
 
Before the test, you need to prepare an audio card (ROM-EG57), a microphone and headphones. The test environment is shown in the picture below:
 
Before the test, you need to prepare an audio card (ROM-EG57), a microphone and headphones. The test environment is shown in the picture below:
  
[[File:ROM-6881 Audio.png]]
+
[[File:ROM-6881 Audio.png|RTENOTITLE]]
  
 
'''1、Get Audio board ID'''
 
'''1、Get Audio board ID'''
<pre># cat /proc/asound/cards
+
<pre>cat /proc/asound/cards
0 [rockchiprt5640c]: rockchip_rt5640 - rockchip,rt5640-codec
 
        rockchip,rt5640-codec
 
1 [rockchiphdmi0 ]: rockchip-hdmi0 - rockchip-hdmi0
 
        rockchip-hdmi0
 
2 [rockchipdp0 ]: rockchip-dp0 - rockchip-dp0
 
        rockchip-dp0
 
 
</pre>
 
</pre>
 +
<pre>0 [rockchiprt5640c]: rockchip_rt5640 - rockchip,rt5640-codec rockchip,rt5640-codec
 +
1 [rockchiphdmi0 ]: rockchip-hdmi0 - rockchip-hdmi0 rockchip-hdmi0
 +
2 [rockchipdp0 ]: rockchip-dp0 - rockchip-dp0 rockchip-dp0s</pre>
  
 
'''2、Record'''
 
'''2、Record'''
  
 
&nbsp; &nbsp; &nbsp; &nbsp;Take Card ID 0 for example:
 
&nbsp; &nbsp; &nbsp; &nbsp;Take Card ID 0 for example:
<pre># arecord -Dplughw:0,0 -f S16_LE -r 16000 -d 10 -t wav test.wav
+
<pre>arecord -Dplughw:0,0 -f S16_LE -r 16000 -d 10 -t wav test.wav
 
</pre>
 
</pre>
  
Line 25: Line 22:
  
 
&nbsp; &nbsp; &nbsp;&nbsp;Take Card ID 0 for example:
 
&nbsp; &nbsp; &nbsp;&nbsp;Take Card ID 0 for example:
<pre># aplay -Dplughw:0,0 -t wav test.wav
+
<pre>aplay -Dplughw:0,0 -t wav test.wav
 
</pre>
 
</pre>
  
 
'''RK Tool&nbsp; Function:'''
 
'''RK Tool&nbsp; Function:'''
<pre># /tools/test/adv/audio/audio_record_test.sh 1
+
<pre>/tools/test/adv/audio/audio_record_test.sh 1
# /tools/test/adv/audio/audio_play_test.sh 1
+
/tools/test/adv/audio/audio_play_test.sh 1
 
</pre>
 
</pre>

Revision as of 02:10, 23 July 2025

Audio Test

Before the test, you need to prepare an audio card (ROM-EG57), a microphone and headphones. The test environment is shown in the picture below:

RTENOTITLE

1、Get Audio board ID

cat /proc/asound/cards
0 [rockchiprt5640c]: rockchip_rt5640 - rockchip,rt5640-codec rockchip,rt5640-codec
1 [rockchiphdmi0 ]: rockchip-hdmi0 - rockchip-hdmi0 rockchip-hdmi0 
2 [rockchipdp0 ]: rockchip-dp0 - rockchip-dp0 rockchip-dp0s

2、Record

       Take Card ID 0 for example:

arecord -Dplughw:0,0 -f S16_LE -r 16000 -d 10 -t wav test.wav

3、Playback

      Take Card ID 0 for example:

aplay -Dplughw:0,0 -t wav test.wav

RK Tool  Function:

/tools/test/adv/audio/audio_record_test.sh 1
/tools/test/adv/audio/audio_play_test.sh 1