This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:edge-2l:applications:es8316 [2025/11/27 02:37] gray ↷ Page moved from local:users:start:applications:es8316 to local:users:gray:products:sbc:edge-2l:applications:es8316 |
products:sbc:edge-2l:applications:es8316 [2026/05/11 01:55] (current) nick ↷ Page moved from local:users:gray:products:sbc:edge-2l:applications:es8316 to products:sbc:edge-2l:applications:es8316 |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Edge-2L and ES8316 | + | ====== Edge-2L and ES8316 |
| <WRAP important > | <WRAP important > | ||
| - | ES8316 codec usage require | + | Using the ES8316 |
| </ | </ | ||
| - | ===== Alsa audio device | + | ===== Alsa audio device |
| - | Access to **ES8316** codec will be available by '' | + | The ES8316 codec is accessible via the ALSA hardware name '' |
| + | You can verify the hardware name with the following commands: | ||
| ```shell print ES8316 hw name | ```shell print ES8316 hw name | ||
| - | ~# aplay -L | grep rockchipes8316c -m1 | + | $ aplay -L | grep rockchipes8316c -m1 |
| hw: | hw: | ||
| - | ~# arecord -L | grep rockchipes8316c -m1 | + | $ arecord -L | grep rockchipes8316c -m1 |
| hw: | hw: | ||
| ``` | ``` | ||
| - | ===== Alsa audio device | + | ===== Alsa audio device |
| + | You can also identify the ES8316 by its card index. List the available audio devices: | ||
| ```shell print ES8316 hw index | ```shell print ES8316 hw index | ||
| ~# arecord -l | grep es8316-codec -A2 | ~# arecord -l | grep es8316-codec -A2 | ||
| Line 33: | Line 35: | ||
| ``` | ``` | ||
| - | The sound **card 3** is the ES8316 | + | In this example, |
| - | ===== Record | + | ===== Record |
| + | Record a 20-second WAV file using the hardware name: | ||
| ``` | ``` | ||
| arecord -D hw: | arecord -D hw: | ||
| ``` | ``` | ||
| - | or by audio device HW index (will be '' | + | Or, using the hardware |
| ```shell | ```shell | ||
| Line 48: | Line 51: | ||
| <WRAP info > | <WRAP info > | ||
| - | The headphone | + | **Microphone Priority: |
| </ | </ | ||
| - | ===== Playback | + | ===== Playback |
| + | Play a WAV file using the hardware name: | ||
| ```shell | ```shell | ||
| aplay -D hw: | aplay -D hw: | ||
| ``` | ``` | ||
| - | or by audio device HW index (will be '' | + | Or, using the hardware |
| ```shell | ```shell | ||
| Line 65: | Line 69: | ||
| <WRAP info > | <WRAP info > | ||
| - | The headphone has the higher priority than the speaker, | + | **Output Priority: |
| </ | </ | ||