Difference between revisions of "ASR-A501 AUDIO"
From ESS-WIKI
Xingxing.li (talk | contribs) (Created page with " === '''Hardware pin definition''' === '''File:ASR-A501 AUDIO.png''' ASR-A501 supports two kinds of sound cards: “0 hdmi” and “1 es8326c”. To set the default aud...") |
Xingxing.li (talk | contribs) (→Audio Test) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
=== '''Hardware pin definition''' === | === '''Hardware pin definition''' === | ||
| − | '''[[File:ASR-A501 AUDIO.png]]''' | + | '''[[File:ASR-A501 AUDIO.png|RTENOTITLE]]''' |
ASR-A501 supports two kinds of sound cards: “0 hdmi” and “1 es8326c”. To set the default audio output for media playback, follow these steps: | ASR-A501 supports two kinds of sound cards: “0 hdmi” and “1 es8326c”. To set the default audio output for media playback, follow these steps: | ||
| Line 9: | Line 9: | ||
2. Select “Build-in Audio stereo” for es8326c-codec output, or select “HDMI” for HDMI output. | 2. Select “Build-in Audio stereo” for es8326c-codec output, or select “HDMI” for HDMI output. | ||
| + | |||
| + | [[File:ASR-A501 AUDIO 1.png]] | ||
=== '''Mute and Volume Control''' === | === '''Mute and Volume Control''' === | ||
| − | Mute and volume can be configured by GUI.<br/> | + | Mute and volume can be configured by GUI.<br/> [[File:ASR-A501 AUDIO 2.png]] |
| + | |||
| + | |||
| + | === '''Audio Test''' === | ||
| + | |||
| + | '''1. Get sound card ID.''' | ||
| + | <pre># cat /proc/asound/cards | ||
| + | 0 [rockchiphdmi0 ]: rockchip-hdmi0 - rockchip-hdmi0 rockchip-hdmi0 | ||
| + | 1 [rockchipes8326c]: simple-card - rockchip,es8326-codec rockchip,es8326-codec | ||
| + | </pre> | ||
| + | |||
| + | '''2. Record''' | ||
| + | |||
| + | Take Card ID 1 for example: | ||
| + | <pre># arecord -Dplughw:1,0 -f S16_LE -r 16000 -d 10 -t wav test.wav | ||
| + | </pre> | ||
| + | |||
| + | '''3. Playback''' | ||
| + | |||
| + | Take Card ID 0 for example: | ||
| + | <pre># aplay -Dplughw:0,0 -t wav test.wav | ||
| + | </pre> | ||
| + | |||
| + | See details of the usage of "aplay": | ||
| + | <pre># aplay --help | ||
| + | … … | ||
| + | -D, --device=NAME select PCM by name | ||
| + | -t, --file-type TYPE file type (voc, wav, raw or au) | ||
| + | … … | ||
| + | </pre> | ||
| + | |||
| + | | ||
Latest revision as of 08:33, 20 May 2025
Hardware pin definition
ASR-A501 supports two kinds of sound cards: “0 hdmi” and “1 es8326c”. To set the default audio output for media playback, follow these steps:
1. Click “Applications” ->”Multimedia”->”PulseAudio Volume Control”.
2. Select “Build-in Audio stereo” for es8326c-codec output, or select “HDMI” for HDMI output.
Mute and Volume Control
Mute and volume can be configured by GUI.
Audio Test
1. Get sound card ID.
# cat /proc/asound/cards 0 [rockchiphdmi0 ]: rockchip-hdmi0 - rockchip-hdmi0 rockchip-hdmi0 1 [rockchipes8326c]: simple-card - rockchip,es8326-codec rockchip,es8326-codec
2. Record
Take Card ID 1 for example:
# arecord -Dplughw:1,0 -f S16_LE -r 16000 -d 10 -t wav test.wav
3. Playback
Take Card ID 0 for example:
# aplay -Dplughw:0,0 -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) … …

