1SectionVerb {
2	Value {
3		OutputDspName "speaker_eq"
4		MinBufferLevel "512"
5		FullySpecifiedUCM "1"
6	}
7
8	EnableSequence [
9		cdev "hw:ROCKCHIPI2S"
10
11		cset "name='Left Speaker Mixer Left DAC Switch' on"
12		cset "name='Right Speaker Mixer Right DAC Switch' on"
13		cset "name='Headphone Left Switch' off"
14		cset "name='Headphone Right Switch' off"
15		cset "name='Digital EQ 3 Band Switch' off"
16		cset "name='Digital EQ 5 Band Switch' off"
17		cset "name='Digital EQ 7 Band Switch' off"
18		cset "name='Biquad Switch' off"
19		cset "name='Filter Mode' Music"
20		cset "name='ADC Oversampling Rate' 0"
21
22		cset "name='DMIC Mux' DMIC"
23		cset "name='MIC2 Mux' IN34"
24		cset "name='Right ADC Mixer MIC2 Switch' on"
25		cset "name='Left ADC Mixer MIC2 Switch' on"
26		cset "name='MIC2 Volume' 20"
27		cset "name='Headset Mic Switch' off"
28		cset "name='Int Mic Switch' on"
29
30		cset "name='ADCR Boost Volume' 4"
31		cset "name='ADCL Boost Volume' 4"
32		cset "name='ADCR Volume' 11"
33		cset "name='ADCL Volume' 11"
34
35		cset "name='Left Speaker Mixer Left DAC Switch' on"
36		cset "name='Right Speaker Mixer Right DAC Switch' on"
37		cset "name='Speaker Left Mixer Volume' 2"
38		cset "name='Speaker Right Mixer Volume' 2"
39		cset "name='Record Path DC Blocking' on"
40		cset "name='Playback Path DC Blocking' on"
41
42		cset "name='Speaker Left Switch' on"
43		cset "name='Speaker Right Switch' on"
44		cset "name='Speaker Switch' on"
45
46		cset "name='Left Speaker Mixer Left DAC Switch' off"
47		cset "name='Right Speaker Mixer Right DAC Switch' off"
48		cset "name='Left Speaker Mixer Right DAC Switch' on"
49		cset "name='Right Speaker Mixer Left DAC Switch' on"
50	]
51
52	DisableSequence [
53	]
54}
55
56SectionDevice."Speaker".0 {
57	Value {
58		PlaybackPCM "hw:ROCKCHIPI2S,0"
59		MixerName "Speaker"
60	}
61	EnableSequence [
62		cdev "hw:ROCKCHIPI2S"
63
64		cset "name='Speaker Switch' on"
65	]
66	DisableSequence [
67		cdev "hw:ROCKCHIPI2S"
68
69		cset "name='Speaker Switch' off"
70	]
71}
72
73SectionDevice."Internal Mic".0 {
74	Value {
75		CapturePCM "hw:ROCKCHIPI2S,0"
76		MixerName "Int Mic"
77	}
78	EnableSequence [
79		cdev "hw:ROCKCHIPI2S"
80
81		cset "name='Int Mic Switch' on"
82	]
83	DisableSequence [
84		cdev "hw:ROCKCHIPI2S"
85
86		cset "name='Int Mic Switch' off"
87	]
88}
89
90SectionDevice."Headphone".0 {
91	Value {
92		PlaybackPCM "hw:ROCKCHIPI2S,0"
93		MixerName "Headphone"
94		JackType "gpio"
95		JackName "ROCKCHIP-I2S Headset Jack"
96		OutputDspName ""
97	}
98
99	EnableSequence [
100		cdev "hw:ROCKCHIPI2S"
101
102		cset "name='Speaker Switch' off"
103		cset "name='Headphone Switch' on"
104		cset "name='Headphone Left Switch' on"
105		cset "name='Headphone Right Switch' on"
106	]
107	DisableSequence [
108		cdev "hw:ROCKCHIPI2S"
109
110		cset "name='Headphone Left Switch' off"
111		cset "name='Headphone Right Switch' off"
112		cset "name='Headphone Switch' off"
113		cset "name='Speaker Switch' on"
114	]
115}
116
117SectionDevice."Mic".0 {
118	Value {
119		CapturePCM "hw:ROCKCHIPI2S,0"
120		MixerName "Headset Mic"
121		JackType "gpio"
122		JackName "ROCKCHIP-I2S Headset Jack"
123	}
124
125	EnableSequence [
126		cdev "hw:ROCKCHIPI2S"
127
128		cset "name='Int Mic Switch' off"
129		cset "name='DMIC Mux' ADC"
130		cset "name='Headset Mic Switch' on"
131		cset "name='Record Path DC Blocking' on"
132	]
133
134	DisableSequence [
135		cdev "hw:ROCKCHIPI2S"
136
137		cset "name='Headset Mic Switch' off"
138		cset "name='DMIC Mux' DMIC"
139		cset "name='Int Mic Switch' on"
140		cset "name='Record Path DC Blocking' off"
141	]
142}
143