blob: da32a116e673fd8739eaf3dd7ed4de94f0500454 (
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
32
33
34
35
36
37
38
39
40
|
## 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
```
## Orange Pi 3 LTS (Allwinner H6)
See [script](../tools/h6-setup-amixer.sh).
```
arecord -v -f S32 -r 44100 test.wav
```
|