summaryrefslogtreecommitdiff
path: root/doc/arecord_orange_pi.md
blob: 923d5264d4e181d2eb0554d27782352f7c2e30f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
```