1
|
#!/bin/sh
|
2
|
# do not change the adc & dac source of AIF2
|
3
|
alsa_amixer cset name="AIF2DACL Source" "0"
|
4
|
alsa_amixer cset name="AIF2DACR Source" "0"
|
5
|
alsa_amixer cset name="AIF2ADCL Source" "0"
|
6
|
alsa_amixer cset name="AIF2ADCR Source" "1"
|
7
|
|
8
|
# AIF1->DAC1
|
9
|
alsa_amixer cset name="DAC1 Switch" "1"
|
10
|
|
11
|
# general
|
12
|
alsa_amixer cset name="IN1L ZC Switch" "0"
|
13
|
alsa_amixer cset name="IN1R ZC Switch" "0"
|
14
|
alsa_amixer cset name="IN2L ZC Switch" "0"
|
15
|
alsa_amixer cset name="IN2R ZC Switch" "0"
|
16
|
alsa_amixer cset name="Output ZC Switch" "0"
|
17
|
alsa_amixer cset name="Speaker ZC Switch" "0"
|
18
|
alsa_amixer cset name="Headphone ZC Switch" "0"
|
19
|
|
20
|
# AIF1->DAC1
|
21
|
alsa_amixer cset name="DAC1L Mixer AIF1.1 Switch" "1"
|
22
|
alsa_amixer cset name="DAC1R Mixer AIF1.1 Switch" "1"
|
23
|
alsa_amixer cset name="DAC1 Switch" "1"
|
24
|
|
25
|
# ADC->AIF2
|
26
|
alsa_amixer cset name="AIF2DAC2L Mixer Left Sidetone Switch" "1"
|
27
|
alsa_amixer cset name="AIF2DAC2L Mixer Right Sidetone Switch" "0"
|
28
|
alsa_amixer cset name="AIF2DAC2R Mixer Left Sidetone Switch" "0"
|
29
|
alsa_amixer cset name="AIF2DAC2R Mixer Right Sidetone Switch" "1"
|
30
|
alsa_amixer cset name="DAC2 Left Sidetone Volume" "12"
|
31
|
alsa_amixer cset name="DAC2 Right Sidetone Volume" "12"
|
32
|
alsa_amixer cset name="DAC2 Switch" "1"
|
33
|
|
34
|
# DAC1->HP
|
35
|
alsa_amixer cset name="Left Headphone Mux" "Mixer"
|
36
|
alsa_amixer cset name="Right Headphone Mux" "Mixer"
|
37
|
|
38
|
# DAC1->SPKL/R->SPKL/R Boost->SPK
|
39
|
alsa_amixer cset name="SPKL DAC1 Switch" "1"
|
40
|
alsa_amixer cset name="SPKR DAC1 Switch" "1"
|
41
|
alsa_amixer cset name="SPKL Boost SPKL Switch" "1"
|
42
|
alsa_amixer cset name="SPKL Boost SPKR Switch" "1"
|
43
|
alsa_amixer cset name="SPKR Boost SPKL Switch" "0"
|
44
|
alsa_amixer cset name="SPKR Boost SPKR Switch" "1"
|
45
|
alsa_amixer cset name="Speaker Mixer Volume" "3"
|
46
|
|
47
|
# DAC->Output mixer->Earpiece
|
48
|
alsa_amixer cset name="Left Output Mixer DAC Switch" "1"
|
49
|
alsa_amixer cset name="Right Output Mixer DAC Switch" "1"
|
50
|
alsa_amixer cset name="Earpiece Mixer Left Output Switch" "1"
|
51
|
alsa_amixer cset name="Earpiece Mixer Right Output Switch" "1"
|
52
|
alsa_amixer cset name="Earpiece Switch" "1"
|
53
|
|
54
|
# LINEOUT
|
55
|
alsa_amixer cset name="LINEOUT2N Mixer Left Output Switch" "1"
|
56
|
alsa_amixer cset name="LINEOUT2P Mixer Right Output Switch" "1"
|
57
|
alsa_amixer cset name="LINEOUT1N Mixer Right Output Switch" "1"
|
58
|
alsa_amixer cset name="LINEOUT1P Mixer Left Output Switch" "1"
|
59
|
|
60
|
# Input mixer->ADC->AIF1.1
|
61
|
alsa_amixer cset name="AIF1ADC1L Mixer ADC/DMIC Switch" "1"
|
62
|
alsa_amixer cset name="AIF1ADC1R Mixer ADC/DMIC Switch" "1"
|
63
|
|
64
|
# Main Mic->IN1LP/N->Input Mixer with +30dB at mixer
|
65
|
alsa_amixer cset name="IN1L PGA IN1LP Switch" "1"
|
66
|
alsa_amixer cset name="IN1L PGA IN1LN Switch" "1"
|
67
|
alsa_amixer cset name="MIXINL IN1L Volume" "1"
|
68
|
alsa_amixer cset name="IN1L Switch" "1"
|
69
|
|
70
|
# Sub Mic->IN1RP/N->Input Mixer with +30dB at mixer
|
71
|
alsa_amixer cset name="IN1R PGA IN1RP Switch" "1"
|
72
|
alsa_amixer cset name="IN1R PGA IN1RN Switch" "1"
|
73
|
alsa_amixer cset name="MIXINR IN1R Volume" "1"
|
74
|
alsa_amixer cset name="IN1R Switch" "1"
|
75
|
|
76
|
# FM Radio->IN2RP/N->Input Mixer with +30dB at mixer
|
77
|
alsa_amixer cset name="IN2R PGA IN2RP Switch" "1"
|
78
|
alsa_amixer cset name="IN2R PGA IN2RN Switch" "1"
|
79
|
alsa_amixer cset name="MIXINR IN2R Volume" "1"
|
80
|
alsa_amixer cset name="IN2R Switch" "1"
|
81
|
|
82
|
# Ear Mic->IN2LP/N->Input Mixer with +30dB at mixer
|
83
|
alsa_amixer cset name="IN2L PGA IN2LP Switch" "1"
|
84
|
alsa_amixer cset name="IN2L PGA IN2LN Switch" "1"
|
85
|
alsa_amixer cset name="MIXINL IN2L Volume" "1"
|
86
|
alsa_amixer cset name="IN2L Switch" "1"
|
87
|
|
88
|
# Input mixer->ADC->AIF1
|
89
|
alsa_amixer cset name="AIF1ADC1L Mixer ADC/DMIC Switch" "1"
|
90
|
alsa_amixer cset name="AIF1ADC1R Mixer ADC/DMIC Switch" "1"
|
91
|
alsa_amixer cset name="ADCL Mux" "ADC"
|
92
|
# HPF on to take out some bounce
|
93
|
alsa_amixer cset name="Sidetone HPF Switch" "0"
|
94
|
|
95
|
# Work around core issue
|
96
|
alsa_amixer cset name="ADCL Mux" "DMIC"
|
97
|
alsa_amixer cset name="ADCL Mux" "ADC"
|
98
|
alsa_amixer cset name="ADCR Mux" "DMIC"
|
99
|
alsa_amixer cset name="ADCR Mux" "ADC"
|
100
|
|
101
|
# AIF2ADCDAT to AIF3ADC mux
|
102
|
alsa_amixer cset name="AIF3ADC Mux" "1"
|
103
|
|
104
|
# Default all outputs off
|
105
|
alsa_amixer cset name="HP Switch" "0"
|
106
|
alsa_amixer cset name="SPK Switch" "0"
|
107
|
alsa_amixer cset name="RCV Switch" "0"
|
108
|
alsa_amixer cset name="LINE Switch" "0"
|
109
|
alsa_amixer cset name="HDMI Switch" "0"
|
110
|
|
111
|
# Default all inputs off
|
112
|
alsa_amixer cset name="Main Mic Switch" "0"
|
113
|
alsa_amixer cset name="Sub Mic Switch" "0"
|
114
|
alsa_amixer cset name="Headset Mic Switch" "0"
|
115
|
alsa_amixer cset name="FM In Switch" "0"
|
116
|
|
117
|
# EQ Switches
|
118
|
alsa_amixer cset name="AIF1DAC1 EQ Switch" "1"
|
119
|
alsa_amixer cset name="AIF1DAC1 EQ1 Volume" "9"
|
120
|
alsa_amixer cset name="AIF1DAC1 EQ2 Volume" "7"
|
121
|
alsa_amixer cset name="AIF1DAC1 EQ3 Volume" "10"
|
122
|
alsa_amixer cset name="AIF1DAC1 EQ4 Volume" "13"
|
123
|
alsa_amixer cset name="AIF1DAC1 EQ5 Volume" "12"
|
124
|
|