Difference between revisions of "ROM-6881 Audio"

From ESS-WIKI
Jump to: navigation, search
Line 2: Line 2:
 
=== '''Audio Test''' ===
 
=== '''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:
+
Before the test, you need to prepare an audio card (ROM-EG57), a microphone and a pair of headphones. The test and jumper setup environment is as shown in the following picture.[[File:ROM-6881 Audio.png|RTENOTITLE]]
 
 
[[File:ROM-6881 Audio.png|RTENOTITLE]]
 
  
 
'''1、Get Audio board ID'''
 
'''1、Get Audio board ID'''
Line 26: Line 24:
  
 
'''RK Tool  Function:'''
 
'''RK Tool  Function:'''
<pre>/tools/test/adv/audio/audio_record_test.sh 1
+
<pre>/tools/test/adv/audio/audio_record_test.sh 0
/tools/test/adv/audio/audio_play_test.sh 1
+
/tools/test/adv/audio/audio_play_test.sh 0
 
</pre>
 
</pre>

Revision as of 02:50, 23 July 2025

Audio Test

Before the test, you need to prepare an audio card (ROM-EG57), a microphone and a pair of headphones. The test and jumper setup environment is as shown in the following picture.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 0
/tools/test/adv/audio/audio_play_test.sh 0