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...")
(No difference)

Revision as of 02:39, 17 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:

ROM-6881 Audio.png

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-dp0

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