-
Notifications
You must be signed in to change notification settings - Fork 7
/
setup-alsa.sh
executable file
·28 lines (21 loc) · 1.03 KB
/
setup-alsa.sh
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
#!/bin/bash
echo "--- Setting up ALSA output for ESSX8336"
# This may be different for your system, you can check it by running aplay -l
OUTPUT_DEVICE='-c 0'
amixer $OUTPUT_DEVICE cset name='Speaker Switch' on
amixer $OUTPUT_DEVICE cset name='Headphone Playback Volume' 3,3
amixer $OUTPUT_DEVICE cset name='Right Headphone Mixer Right DAC Switch' on
amixer $OUTPUT_DEVICE cset name='Left Headphone Mixer Left DAC Switch' on
amixer $OUTPUT_DEVICE cset name='DAC Playback Volume' 999,999
amixer $OUTPUT_DEVICE cset name='Headphone Mixer Volume' 999,999
amixer $OUTPUT_DEVICE sset Headphone 3
echo "--- Setting up ALSA output for ESSX8336"
# This may be different for your system, you can check it by running arecord -l
INPUT_DEVICE='-c 0'
amixer $INPUT_DEVICE cset name='ADC PGA Gain Volume' 7
amixer $INPUT_DEVICE cset name='ADC Capture Volume' 150
amixer $INPUT_DEVICE cset name='Internal Mic Switch' on
amixer $INPUT_DEVICE cset name='Headset Mic Switch' on
amixer $INPUT_DEVICE cset name='Differential Mux' 'lin2-rin2'
echo "=== Done!"
exit 0