• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1SectionVerb {
2	Value {
3		OutputDspName "speaker_eq"
4	}
5
6	EnableSequence [
7		cdev "hw:chtmax98090"
8
9		cset "name='codec_out0 mix 0 pcm0_in Switch' on"
10		cset "name='media0_out mix 0 media1_in Switch' on"
11		cset "name='media1_in Gain 0 Ramp Delay' 50"
12		cset "name='media1_in Gain 0 Switch' off"
13		cset "name='media1_in Gain 0 Volume' 80% 80%"
14		cset "name='pcm0_in Gain 0 Ramp Delay' 50"
15		cset "name='pcm0_in Gain 0 Switch' off"
16		cset "name='pcm0_in Gain 0 Volume' 80% 80%"
17		cset "name='codec_out0 Gain 0 Ramp Delay' 50"
18		cset "name='codec_out0 Gain 0 Switch' off"
19		cset "name='codec_out0 Gain 0 Volume' 80% 80%"
20		cset "name='pcm1_out mix 0 media_loop2_in Switch' 1"
21		cset "name='media_loop2_out mix 0 codec_in0 Switch' 1"
22		cset "name='codec_in0 Gain 0 Ramp Delay' 50"
23		cset "name='codec_in0 Gain 0 Switch' off"
24		cset "name='codec_in0 Gain 0 Volume' 80% 80%"
25		cset "name='media_loop2_out Gain 0 Ramp Delay' 50"
26		cset "name='media_loop2_out Gain 0 Switch' off"
27		cset "name='media_loop2_out Gain 0 Volume' 80% 80%"
28		cset "name='pcm1_out Gain 0 Ramp Delay' 50"
29		cset "name='pcm1_out Gain 0 Switch' off"
30		cset "name='pcm1_out Gain 0 Volume' 80% 80%"
31		cset "name='Digital EQ 3 Band Switch' off"
32		cset "name='Digital EQ 5 Band Switch' off"
33		cset "name='Digital EQ 7 Band Switch' off"
34		cset "name='Biquad Switch' off"
35		cset "name='Filter Mode' Music"
36		cset "name='ADC Oversampling Rate' 0"
37
38		cset "name='DMIC Mux' DMIC"
39		cset "name='MIC2 Mux' IN34"
40		cset "name='Right ADC Mixer MIC2 Switch' on"
41		cset "name='Left ADC Mixer MIC2 Switch' on"
42		cset "name='MIC2 Volume' 20"
43		cset "name='Int Mic Switch' on"
44
45		cset "name='ADCR Boost Volume' 4"
46		cset "name='ADCL Boost Volume' 4"
47		cset "name='ADCR Volume' 11"
48		cset "name='ADCL Volume' 11"
49
50		cset "name='Left Speaker Mixer Left DAC Switch' on"
51		cset "name='Right Speaker Mixer Right DAC Switch' on"
52		cset "name='Speaker Left Mixer Volume' 2"
53		cset "name='Speaker Right Mixer Volume' 2"
54		cset "name='Record Path DC Blocking' on"
55		cset "name='Playback Path DC Blocking' on"
56
57		cset "name='Headphone Left Switch' on"
58		cset "name='Headphone Right Switch' on"
59		cset "name='Ext HP Switch' off"
60
61		cset "name='Speaker Left Switch' on"
62		cset "name='Speaker Right Switch' on"
63		cset "name='Ext Spk Switch' on"
64
65	]
66
67	DisableSequence [
68	]
69}
70
71SectionDevice."Headphone".0 {
72	Value {
73		JackName "chtmax98090 Headset Jack"
74		OutputDspName ""
75	}
76
77	EnableSequence [
78		cdev "hw:chtmax98090"
79		cset "name='Ext Spk Switch' off"
80		cset "name='Speaker Left Switch' off"
81		cset "name='Speaker Right Switch' off"
82		cset "name='Ext HP Switch' on"
83	]
84	DisableSequence [
85		cdev "hw:chtmax98090"
86		cset "name='Ext HP Switch' off"
87		cset "name='Ext Spk Switch' on"
88		cset "name='Speaker Left Switch' on"
89		cset "name='Speaker Right Switch' on"
90	]
91}
92
93SectionDevice."Mic".0 {
94	Value {
95		JackName "chtmax98090 Headset Jack"
96	}
97
98	EnableSequence [
99		cdev "hw:chtmax98090"
100		cset "name='Int Mic Switch' off"
101		cset "name='Headset Mic Switch' on"
102		cset "name='DMIC Mux' ADC"
103		cset "name='Record Path DC Blocking' on"
104	]
105
106	DisableSequence [
107		cdev "hw:chtmax98090"
108		cset "name='Headset Mic Switch' off"
109		cset "name='Int Mic Switch' on"
110		cset "name='DMIC Mux' DMIC"
111		cset "name='Record Path DC Blocking' off"
112	]
113}
114
115SectionModifier."Speaker Swap Mode".0 {
116	Comment "Swap the left and right channels of speaker."
117
118	EnableSequence [
119		cdev "hw:chtmax98090"
120
121		cset "name='Left Speaker Mixer Left DAC Switch' off"
122		cset "name='Right Speaker Mixer Right DAC Switch' off"
123		cset "name='Left Speaker Mixer Right DAC Switch' on"
124		cset "name='Right Speaker Mixer Left DAC Switch' on"
125	]
126
127	DisableSequence [
128		cdev "hw:chtmax98090"
129
130		cset "name='Left Speaker Mixer Right DAC Switch' off"
131		cset "name='Right Speaker Mixer Left DAC Switch' off"
132		cset "name='Left Speaker Mixer Left DAC Switch' on"
133		cset "name='Right Speaker Mixer Right DAC Switch' on"
134	]
135}
136