Difference between revisions of "EPC-R5710 Audio"
From ESS-WIKI
Xingxing.li (talk | contribs) |
Xingxing.li (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
'''1. Set MIC and headphone:''' | '''1. Set MIC and headphone:''' | ||
− | <pre> | + | <pre># amixer -c1 set Mic 32% |
Simple mixer control 'Mic',0 | Simple mixer control 'Mic',0 | ||
Capabilities: volume volume-joined | Capabilities: volume volume-joined | ||
Line 21: | Line 21: | ||
Limits: 0 - 3 | Limits: 0 - 3 | ||
Mono: 1 [33%] [20.00dB] | Mono: 1 [33%] [20.00dB] | ||
− | + | # amixer -c1 set Lineout 100% | |
Simple mixer control 'Lineout',0 | Simple mixer control 'Lineout',0 | ||
Capabilities: pvolume | Capabilities: pvolume | ||
Line 28: | Line 28: | ||
Front Left: Playback 31 [100%] [0.00dB] | Front Left: Playback 31 [100%] [0.00dB] | ||
Front Right: Playback 31 [100%] [0.00dB] | Front Right: Playback 31 [100%] [0.00dB] | ||
− | + | # amixer -c1 set PCM 100% | |
Simple mixer control 'PCM',0 | Simple mixer control 'PCM',0 | ||
Capabilities: pvolume | Capabilities: pvolume | ||
Line 43: | Line 43: | ||
=== '''HDMI Playback''' === | === '''HDMI Playback''' === | ||
<pre># arecord -Dplughw:1,0 -t wav -d 5 -c 2 -V stereo audio-luyin.wav | <pre># arecord -Dplughw:1,0 -t wav -d 5 -c 2 -V stereo audio-luyin.wav | ||
− | # aplay -Dplughw:2,0 audio-luyin.wav</pre> | + | # aplay -Dplughw:2,0 audio-luyin.wav |
+ | </pre> | ||
=== '''Mic array Record and playback''' === | === '''Mic array Record and playback''' === | ||
− | '''Step | + | '''Step 1:Check audio codec''' |
<pre># cat /proc/asound/cards | <pre># cat /proc/asound/cards | ||
0 [imxaudiomicfil ]: imx-audio-micfi - imx-audio-micfil | 0 [imxaudiomicfil ]: imx-audio-micfi - imx-audio-micfil | ||
Line 56: | Line 57: | ||
audio-hdmi</pre> | 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