AOM-3841 AUDIO MIC1/OUT1 & MIC2/OUT2

From ESS-WIKI
Revision as of 09:49, 17 March 2026 by Xingxing.li (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

AOM-3841 supports three kinds of sound cards:

“1 rt5640-codec”(9696EG57001)
“2 hdmi”,
“3 dp0

Set the default audio output when playing media files.
1. Click “Applications” ->”Multimedia”->”PulseAudio Volume Control”.
2. Select “Build-in Audio stereo” for rt5640-codec output, or select “HDMI” for  HDMI output, or select “Build-in Audio Display Port 1 Stereo” for DP output.

RTENOTITLE

Mute and Volume Control
Mute and volume can be configured by GUI.

RTENOTITLE

 

AUDIO MIC1/OUT1(Compatible with ROM-EG57)

HW Pin Header

<img src="/wiki/images/9/9f/AOM-DB3500_AUDIO_1.png" _fck_mw_filename="AOM-DB3500 AUDIO 1.png" width="700" height="600" _fck_mw_origimgwidth="1075" _fck_mw_origimgheight="1001" alt="AOM-DB3500 AUDIO 1.png" title="AOM-DB3500 AUDIO 1.png" style="vertical-align:middle;" /><img src="/wiki/images/7/7e/AOM-DB3500_AUDIO_PIn_header.png" _fck_mw_filename="AOM-DB3500 AUDIO PIn header.png" _fck_mw_origimgwidth="403" _fck_mw_origimgheight="379" alt="RTENOTITLE" title="RTENOTITLE" style="vertical-align:middle;" />

I2S0 Connector Pin Definition
Pin Signal I/O Description
1 I2S0_VDDA   I2S0 3.3V source
2 GND   Ground
3 I2S0_VDDA   I2S0 3.3V source
4 I2S0_SDIN_3.3 I I2S0 Serial Data IN 3.3V Level
5 I2S0_SDOUT_3.3 O I2S0 Serial Data OUT 3.3V Level
6 I2S0_LRCK_3.3 I I2S0 Left/Right Clock
7 I2S0_BCLK_3.3 I I2S0 Bit Clock
8 AUD0_MCK I Audio0 Master Clock
9 N/A   Not Applicable
10 GND   Ground
11 I2S0_I2C_CLK I I2S0 I2C clock input from host.
12 MIC_BIAS1 I For I2S0 Microphone Bias Voltage
13 I2S0_I2C_DAT I/O I2S0 I2C Data
14 GND   Ground
15 N/A   Not Applicable
16 I2S0_HP_R I I2S0 Right Headphone
17 I2S0_MIC_IN I I2S0 Microphone IN
18 GND   Ground
19 GND   Ground
20 I2S0_HP_L I I2S0 Left Headphone

AUDIO MIC2/OUT2(Compatible with ROM-EG57)

HW Pin Header

<img src="/wiki/images/8/89/AOM-DB3500_AUDIO2.png" _fck_mw_filename="AOM-DB3500 AUDIO2.png" width="700" height="600" _fck_mw_origimgwidth="1084" _fck_mw_origimgheight="1009" alt="AOM-DB3500 AUDIO2.png" title="AOM-DB3500 AUDIO2.png" style="vertical-align:middle;" /><img src="/wiki/images/7/7e/AOM-DB3500_AUDIO_PIn_header.png" _fck_mw_filename="AOM-DB3500 AUDIO PIn header.png" _fck_mw_origimgwidth="403" _fck_mw_origimgheight="379" alt="RTENOTITLE" title="RTENOTITLE" style="vertical-align:middle;" />

I2S1 Connector Pin Definition
Pin Signal I/O Description
1 I2S1_VDDA   I2S1 3.3V source
2 GND   Ground
3 I2S1_VDDA   I2S1 3.3V source
4 I2S1_SDIN_3.3 I I2S1 Serial Data IN 3.3V Level
5 I2S1_SDOUT_3.3 O I2S1 Serial Data OUT 3.3V Level
6 I2S1_LRCK_3.3 I I2S1 Left/Right Clock
7 I2S1_BCLK_3.3 I I2S1 Bit Clock
8 AUD1_MCK I Audio1 Master Clock
9 N/A   Not Applicable
10 GND   Ground
11 I2S1_I2C_CLK I I2S1 I2C clock input from host.
12 MIC_BIAS2 I For I2S1 Microphone Bias Voltage
13 I2S1_I2C_DAT I/O I2S1 I2C Data
14 GND   Ground
15 N/A   Not Applicable
16 I2S1_HP_R I I2S1 Right Headphone
17 I2S1_MIC_IN I I2S1 Microphone IN
18 GND   Ground
19 GND   Ground
20 I2S1_HP_L I I2S1 Left Headphone

Audio Test

Get sound card ID

# cat /proc/asound/cards
0 [rockchiprt5640c]: simple-card - rockchip,rt5640-codec
 rockchip,rt5640-codec
1 [rockchipdp0 ]: rockchip-dp0 - rockchip-dp0
 rockchip-dp0
2 [rockchiphdmi ]: rockchip-hdmi - rockchip-hdmi
 rockchip-hdmi

Record

Take Card ID 0 for example:

# CARD_ID=0
# arecord -c 2 -Dplughw:$CARD_ID,0 -f S16_LE -r 16000 -d 10 -t wav 
test.wav  

 

Playback.

Take Card ID 0 for example:

# CARD_ID=0
# arecord -c 2 -Dplughw:$CARD_ID,0 -f S16_LE -r 16000 -d 10 -t wav 
test.wav

See details of the usage of “aplay”: 

# aplay --help
… …
-D, --device=NAME select PCM by name
-t, --file-type TYPE file type (voc, wav, raw or au)
… …

 

RKTool指令:

# cat /proc/asound/cards
# /tools/test/adv/audio/audio_record_test.sh 0
# /tools/test/adv/audio/audio_play_test.sh 0

RTENOTITLE RTENOTITLE