diff options
Diffstat (limited to 'doc')
-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 |