Difference between revisions of "EPC-R5710 Audio"

From ESS-WIKI
Jump to: navigation, search
(Created page with " === '''Audio''' === Step 1: Check audio codec<br/> Card 0 is IMX digital array audio, Card 1 is sgtl5000 audio , Card 2 is HDMI audio <pre># cat /proc/asound/cards 0 [imxaud...")
 
 
(5 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
=== '''Audio codec(sgtl5000)''' ===
 
=== '''Audio codec(sgtl5000)''' ===
  
&nbsp;
+
'''1. Set MIC and headphone:'''
 +
<pre># amixer -c1 set Mic 32%
 +
Simple mixer control 'Mic',0
 +
Capabilities: volume volume-joined
 +
Playback channels: Mono
 +
Capture channels: Mono
 +
Limits: 0 - 3
 +
Mono: 1 [33%] [20.00dB]
 +
# amixer -c1 set Lineout 100%
 +
Simple mixer control 'Lineout',0
 +
Capabilities: pvolume
 +
Playback channels: Front Left - Front Right Limits: Playback 0 - 31
 +
Mono:
 +
Front Left: Playback 31 [100%] [0.00dB]
 +
Front Right: Playback 31 [100%] [0.00dB]
 +
# amixer -c1 set PCM 100%
 +
Simple mixer control 'PCM',0
 +
Capabilities: pvolume
 +
Playback channels: Front Left - Front Right
 +
Limits: Playback 0 - 192
 +
Mono:
 +
Front Left: Playback 192 [100%]
 +
Front Right: Playback 192 [100%]</pre>
 +
 
 +
'''2.&nbsp;sgtl5000 Record and Playback:'''
 +
<pre># arecord -Dplughw:1,0 -t wav -d 5 -c 2 -V stereo audio-luyin.wav
 +
# aplay -Dplughw:1,0 audio-luyin.wav</pre>
 +
 
 +
=== '''HDMI Playback''' ===
 +
<pre># arecord -Dplughw:1,0 -t wav -d 5 -c 2 -V stereo audio-luyin.wav
 +
# aplay -Dplughw:2,0 audio-luyin.wav
 +
</pre>
 +
 
 +
=== '''Mic array Record and playback''' ===
 +
 
 +
'''Step 1:Check audio codec'''
 +
<pre># cat /proc/asound/cards
 +
0 [imxaudiomicfil ]: imx-audio-micfi - imx-audio-micfil
 +
imx-audio-micfil
 +
1 [sgtl5000]: sgtl5000 - sgtl5000
 +
sgtl5000
 +
2 [audiohdmi]: audio-hdmi - audio-hdmi
 +
audio-hdmi</pre>
 +
 
 +
'''Step 2:Record with mic array and Playback with HDMI'''
 +
<pre># arecord -Dplughw:0,0 -t wav -d 5 -c 2 -V stereo mic-array-luyin.wav
 +
# aplay -Dplughw:2,0 mic-array-luyin.wav</pre>

Latest revision as of 07:02, 31 August 2023

Audio

Step 1: Check audio codec
Card 0 is IMX digital array audio, Card 1 is sgtl5000 audio , Card 2 is HDMI audio

# cat /proc/asound/cards
0 [imxaudiomicfil ]: imx-audio-micfi - imx-audio-micfil
imx-audio-micfil
1 [sgtl5000]: sgtl5000 - sgtl5000 sgtl5000
2 [audiohdmi]: audio-hdmi - audio-hdmi
audio-hdmi

Audio codec(sgtl5000)

1. Set MIC and headphone:

# amixer -c1 set Mic 32%
Simple mixer control 'Mic',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 3
Mono: 1 [33%] [20.00dB]
# amixer -c1 set Lineout 100%
Simple mixer control 'Lineout',0
Capabilities: pvolume
Playback channels: Front Left - Front Right Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [0.00dB]
Front Right: Playback 31 [100%] [0.00dB]
# amixer -c1 set PCM 100%
Simple mixer control 'PCM',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 192
Mono:
Front Left: Playback 192 [100%]
Front Right: Playback 192 [100%]

2. sgtl5000 Record and Playback:

# arecord -Dplughw:1,0 -t wav -d 5 -c 2 -V stereo audio-luyin.wav
# aplay -Dplughw:1,0 audio-luyin.wav

HDMI Playback

# arecord -Dplughw:1,0 -t wav -d 5 -c 2 -V stereo audio-luyin.wav
# aplay -Dplughw:2,0 audio-luyin.wav

Mic array Record and playback

Step 1:Check audio codec

# cat /proc/asound/cards
0 [imxaudiomicfil ]: imx-audio-micfi - imx-audio-micfil
imx-audio-micfil
1 [sgtl5000]: sgtl5000 - sgtl5000
sgtl5000
2 [audiohdmi]: audio-hdmi - audio-hdmi
audio-hdmi

Step 2:Record with mic array and Playback with HDMI

# arecord -Dplughw:0,0 -t wav -d 5 -c 2 -V stereo mic-array-luyin.wav
# aplay -Dplughw:2,0 mic-array-luyin.wav