This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:edge2:applications:es8316 [2022/11/24 02:27] ivan created |
products:sbc:edge2:applications:es8316 [2023/03/09 19:58] (current) nick [Edge2 and ES8316 Audio Usage] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Edge2 ES8316 | + | ====== Edge2 and ES8316 |
+ | |||
+ | <WRAP important > | ||
+ | ES8316 codec usage require [[https:// | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Alsa audio device HW name ===== | ||
+ | |||
+ | Access to **ES8316** codec will be available by '' | ||
+ | |||
+ | ```shell print ES8316 hw name | ||
+ | ~# aplay -L | grep rockchipes8316c -m1 | ||
+ | hw: | ||
+ | |||
+ | ~# arecord -L | grep rockchipes8316c -m1 | ||
+ | hw: | ||
+ | ``` | ||
+ | |||
+ | ===== Alsa audio device HW index ===== | ||
+ | |||
+ | ```shell print ES8316 hw index | ||
+ | ~# arecord -l | grep es8316-codec -A2 | ||
+ | card 3: rockchipes8316c [rockchip, | ||
+ | Subdevices: 1/1 | ||
+ | Subdevice #0: subdevice #0 | ||
+ | |||
+ | ~# aplay -l | grep es8316-codec -A2 | ||
+ | card 3: rockchipes8316c [rockchip, | ||
+ | Subdevices: 1/1 | ||
+ | Subdevice #0: subdevice #0 | ||
+ | |||
+ | ``` | ||
+ | |||
+ | The sound **card 3** is the ES8316 device and audio device HW index is '' | ||
+ | |||
+ | ===== Record from ES8316 ===== | ||
+ | |||
+ | ``` | ||
+ | arecord -D hw: | ||
+ | ``` | ||
+ | |||
+ | or by audio device HW index (will be '' | ||
+ | |||
+ | ```shell | ||
+ | arecord -D hw:3 -f cd -d 20 record.wav | ||
+ | ``` | ||
+ | |||
+ | <WRAP info > | ||
+ | The headphone mic has the higher priority than the AMIC, which means if you connect the headphone then will record from the headphone mic, otherwise record from the AMIC. | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Playback from ES8316 ===== | ||
+ | |||
+ | ```shell | ||
+ | aplay -D hw: | ||
+ | ``` | ||
+ | |||
+ | or by audio device HW index (will be '' | ||
+ | |||
+ | ```shell | ||
+ | aplay -D hw:3 xxx.wav | ||
+ | ``` | ||
+ | |||
+ | <WRAP info > | ||
+ | The headphone has the higher priority than the speaker, which means if you connect the headphone then will play from the headphone, otherwise play from the speaker. | ||
+ | </ | ||
- | {{page> |