Difference between revisions of "AOM-3841 AUDIO MIC1/OUT1 & MIC2/OUT2"

From ESS-WIKI
Jump to: navigation, search
(Created page with " === '''AOM-3841 supports three kinds of sound cards:''' === “1 rt5640-codec”(9696EG57001)<br/> “2 hdmi”,<br/> “3 dp0 '''Set the default audio output when playing...")
 
 
(One intermediate revision by the same user not shown)
Line 128: Line 128:
 
| style="width: 54px;" | I
 
| style="width: 54px;" | I
 
| style="width: 219px;" | I2S0 Left Headphone
 
| style="width: 219px;" | I2S0 Left Headphone
 +
|}
 +
 +
=== '''AUDIO MIC2/OUT2(Compatible with ROM-EG57)''' ===
 +
 +
'''HW Pin Header'''
 +
 +
[[File:AOM-DB3500 AUDIO2.png|700x600px|AOM-DB3500 AUDIO2.png]][[File:AOM-DB3500 AUDIO PIn header.png|RTENOTITLE]]
 +
 +
{| border="1" cellpadding="1" cellspacing="1" style="width: 582px;"
 +
|-
 +
| colspan="4" style="width: 572px;" | '''I2S1 Connector Pin Definition'''
 +
|-
 +
| style="width: 52px;" | '''Pin'''
 +
| style="width: 198px;" | '''Signal'''
 +
| style="width: 49px;" | '''I/O'''
 +
| style="width: 260px;" | '''Description'''
 +
|-
 +
| style="width: 52px;" | 1
 +
| style="width: 198px;" | I2S1_VDDA
 +
| style="width: 49px;" | &nbsp;
 +
| style="width: 260px;" | I2S1 3.3V source
 +
|-
 +
| style="width: 52px;" | 2
 +
| style="width: 198px;" | GND
 +
| style="width: 49px;" | &nbsp;
 +
| style="width: 260px;" | Ground
 +
|-
 +
| style="width: 52px;" | 3
 +
| style="width: 198px;" | I2S1_VDDA
 +
| style="width: 49px;" | &nbsp;
 +
| style="width: 260px;" | I2S1 3.3V source
 +
|-
 +
| style="width: 52px;" | 4
 +
| style="width: 198px;" | I2S1_SDIN_3.3
 +
| style="width: 49px;" | I
 +
| style="width: 260px;" | I2S1 Serial Data IN 3.3V Level
 +
|-
 +
| style="width: 52px;" | 5
 +
| style="width: 198px;" | I2S1_SDOUT_3.3
 +
| style="width: 49px;" | O
 +
| style="width: 260px;" | I2S1 Serial Data OUT 3.3V Level
 +
|-
 +
| style="width: 52px;" | 6
 +
| style="width: 198px;" | I2S1_LRCK_3.3
 +
| style="width: 49px;" | I
 +
| style="width: 260px;" | I2S1 Left/Right Clock
 +
|-
 +
| style="width: 52px;" | 7
 +
| style="width: 198px;" | I2S1_BCLK_3.3
 +
| style="width: 49px;" | I
 +
| style="width: 260px;" | I2S1 Bit Clock
 +
|-
 +
| style="width: 52px;" | 8
 +
| style="width: 198px;" | AUD1_MCK
 +
| style="width: 49px;" | I
 +
| style="width: 260px;" | Audio1 Master Clock
 +
|-
 +
| style="width: 52px;" | 9
 +
| style="width: 198px;" | N/A
 +
| style="width: 49px;" | &nbsp;
 +
| style="width: 260px;" | Not Applicable
 +
|-
 +
| style="width: 52px;" | 10
 +
| style="width: 198px;" | GND
 +
| style="width: 49px;" | &nbsp;
 +
| style="width: 260px;" | Ground
 +
|-
 +
| style="width: 52px;" | 11
 +
| style="width: 198px;" | I2S1_I2C_CLK
 +
| style="width: 49px;" | I
 +
| style="width: 260px;" | I2S1 I2C clock input from host.
 +
|-
 +
| style="width: 52px;" | 12
 +
| style="width: 198px;" | MIC_BIAS2
 +
| style="width: 49px;" | I
 +
| style="width: 260px;" | For I2S1 Microphone Bias Voltage
 +
|-
 +
| style="width: 52px;" | 13
 +
| style="width: 198px;" | I2S1_I2C_DAT
 +
| style="width: 49px;" | I/O
 +
| style="width: 260px;" | I2S1 I2C Data
 +
|-
 +
| style="width: 52px;" | 14
 +
| style="width: 198px;" | GND
 +
| style="width: 49px;" | &nbsp;
 +
| style="width: 260px;" | Ground
 +
|-
 +
| style="width: 52px;" | 15
 +
| style="width: 198px;" | N/A
 +
| style="width: 49px;" | &nbsp;
 +
| style="width: 260px;" | Not Applicable
 +
|-
 +
| style="width: 52px;" | 16
 +
| style="width: 198px;" | I2S1_HP_R
 +
| style="width: 49px;" | I
 +
| style="width: 260px;" | I2S1 Right Headphone
 +
|-
 +
| style="width: 52px;" | 17
 +
| style="width: 198px;" | I2S1_MIC_IN
 +
| style="width: 49px;" | I
 +
| style="width: 260px;" | I2S1 Microphone IN
 +
|-
 +
| style="width: 52px;" | 18
 +
| style="width: 198px;" | GND
 +
| style="width: 49px;" | &nbsp;
 +
| style="width: 260px;" | Ground
 +
|-
 +
| style="width: 52px;" | 19
 +
| style="width: 198px;" | GND
 +
| style="width: 49px;" | &nbsp;
 +
| style="width: 260px;" | Ground
 +
|-
 +
| style="width: 52px;" | 20
 +
| style="width: 198px;" | I2S1_HP_L
 +
| style="width: 49px;" | I
 +
| style="width: 260px;" | I2S1 Left Headphone
 
|}
 
|}
  
Line 146: Line 262:
 
<pre># CARD_ID=0
 
<pre># CARD_ID=0
 
# arecord -c 2 -Dplughw:$CARD_ID,0 -f S16_LE -r 16000 -d 10 -t wav&nbsp;
 
# arecord -c 2 -Dplughw:$CARD_ID,0 -f S16_LE -r 16000 -d 10 -t wav&nbsp;
test.wav&nbsp;&nbsp;</pre>
+
test.wav&nbsp;&nbsp;
 
+
</pre>
&nbsp;
 
  
 
=== '''Playback.''' ===
 
=== '''Playback.''' ===
Line 162: Line 277:
 
-D, --device=NAME select PCM by name
 
-D, --device=NAME select PCM by name
 
-t, --file-type TYPE file type (voc, wav, raw or au)
 
-t, --file-type TYPE file type (voc, wav, raw or au)
… …</pre>
+
… …
 
+
</pre>
&nbsp;
 
  
 
=== '''RKTool指令:''' ===
 
=== '''RKTool指令:''' ===

Latest revision as of 02:19, 18 March 2026

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

AOM-DB3500 AUDIO 1.pngRTENOTITLE

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

AOM-DB3500 AUDIO2.pngRTENOTITLE

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