RSB-3730 Audio
From ESS-WIKI
Revision as of 10:21, 9 November 2023 by Xingxing.li (talk | contribs) (Created page with " '''1. Check audio codec.''' <pre># cat /proc/asound/cards 0 [sgtl5000 ]: sgtl5000 - sgtl5000 sgtl5000</pre> '''2. Audio codec (sgtl5000):''' a. Set MIC and headphone:...")
1. Check audio codec.
# cat /proc/asound/cards 0 [sgtl5000 ]: sgtl5000 - sgtl5000 sgtl5000
2. Audio codec (sgtl5000):
a. Set MIC and headphone:
'''# amixer 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 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 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%]
b. Record and playback:
# arecord -t wav -c 1 -r 44100 -d 5 /tmp/mic.wav # aplay /tmp/mic.wav