diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-16 22:42:47 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-16 22:42:47 +0300 |
commit | 39d83fa73a8cf60bd3cc85c961bc6fbeb19b8a9e (patch) | |
tree | 32ee1b5cb716a7b8b67f46a6ac6d097ea92fd79f | |
parent | eafd0f41b385ad356e874677f674cbcf27908a94 (diff) |
doc: update audio recording docs on orange pi
-rw-r--r-- | doc/arecord_opi_lite.md | 13 | ||||
-rw-r--r-- | doc/arecord_orange_pi.md | 31 |
2 files changed, 31 insertions, 13 deletions
diff --git a/doc/arecord_opi_lite.md b/doc/arecord_opi_lite.md deleted file mode 100644 index 153f9a1..0000000 --- a/doc/arecord_opi_lite.md +++ /dev/null @@ -1,13 +0,0 @@ -In order to use microphone on **Orange Pi Lite**: -- enable audio codec in `armbian-config` -- put this to `/etc/rc.local` (and make it executable): - ``` - for v in unmute cap; do - /usr/bin/amixer set "Line In" $v - /usr/bin/amixer set "Mic1" $v - done - - for k in "Mic1 Boost" "Line In" "Mic1"; do - /usr/bin/amixer set "$k" "86%" - done - ```
\ No newline at end of file diff --git a/doc/arecord_orange_pi.md b/doc/arecord_orange_pi.md new file mode 100644 index 0000000..923d526 --- /dev/null +++ b/doc/arecord_orange_pi.md @@ -0,0 +1,31 @@ +## Orange Pi Lite + +To record audio on **Orange Pi Lite**: +- enable audio codec in `armbian-config` +- put this to `/etc/rc.local` (and make it executable): + ``` + for v in unmute cap; do + /usr/bin/amixer set "Line In" $v + /usr/bin/amixer set "Mic1" $v + done + + for k in "Mic1 Boost" "Line In" "Mic1"; do + /usr/bin/amixer set "$k" "86%" + done + ``` + +## Orange Pi PC2 + +``` +#!/bin/bash + +for v in unmute cap; do + /usr/bin/amixer set "Line In" $v + /usr/bin/amixer set "Mic1" $v + /usr/bin/amixer set "Mic2" $v +done + +for k in "Mic1 Boost" "Line In" "Mic1" "Mic2 Boost" "Mic2"; do + /usr/bin/amixer set "$k" "86%" +done +```
\ No newline at end of file |