summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/alsa-state
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2015-07-15 17:14:27 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2015-07-16 15:01:29 -0300
commitf8517afc7a5ada4538b3b7d397fa32586d57ffe5 (patch)
tree79349f091306d1760fd4687e62336ffa8fb8c721 /recipes-bsp/alsa-state
parentc92b415d653afc55f33b6b93fb9248193bfd4fa0 (diff)
downloadmeta-freescale-f8517afc7a5ada4538b3b7d397fa32586d57ffe5.tar.gz
Move meta-fsl-arm content to layer root
The meta-fsl-arm is going to be used as the base for this layer. It contains a clean history and allowing a more granullar set of changes. This commit is just a rename of all contents of meta-fsl-arm subdirectory to this layer's root, subsequent changes are based on top of that. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-bsp/alsa-state')
-rw-r--r--recipes-bsp/alsa-state/alsa-state.bbappend7
-rwxr-xr-xrecipes-bsp/alsa-state/alsa-state/mx5/asound.conf275
-rw-r--r--recipes-bsp/alsa-state/alsa-state/mx5/asound.state139
-rw-r--r--recipes-bsp/alsa-state/alsa-state/mx6/asound.conf257
-rw-r--r--recipes-bsp/alsa-state/alsa-state/mx6/asound.state1374
-rw-r--r--recipes-bsp/alsa-state/alsa-state/mxs/asound.conf299
-rw-r--r--recipes-bsp/alsa-state/alsa-state/mxs/asound.state191
7 files changed, 2542 insertions, 0 deletions
diff --git a/recipes-bsp/alsa-state/alsa-state.bbappend b/recipes-bsp/alsa-state/alsa-state.bbappend
new file mode 100644
index 00000000..6bc02467
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state.bbappend
@@ -0,0 +1,7 @@
1# Append path for freescale layer to include alsa-state asound.conf
2FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
3
4PACKAGE_ARCH_mx6 = "${MACHINE_ARCH}"
5PACKAGE_ARCH_mx5 = "${MACHINE_ARCH}"
6PACKAGE_ARCH_mxs = "${MACHINE_ARCH}"
7
diff --git a/recipes-bsp/alsa-state/alsa-state/mx5/asound.conf b/recipes-bsp/alsa-state/alsa-state/mx5/asound.conf
new file mode 100755
index 00000000..0cbe59b2
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state/mx5/asound.conf
@@ -0,0 +1,275 @@
1defaults.pcm.rate_converter "linear"
2
3pcm.dmix_48000{
4type dmix
5ipc_key 5678293
6ipc_key_add_uid yes
7slave{
8pcm "hw:0,0"
9period_time 0
10period_size 2048
11buffer_size 24576
12format S16_LE
13rate 48000
14}
15}
16
17pcm.dmix_44100{
18type dmix
19ipc_key 5678293
20ipc_key_add_uid yes
21slave{
22pcm "hw:0,0"
23period_time 0
24period_size 2048
25buffer_size 24576
26format S16_LE
27rate 44100
28}
29}
30
31pcm.dmix_32000{
32type dmix
33ipc_key 5678293
34ipc_key_add_uid yes
35slave{
36pcm "hw:0,0"
37period_time 0
38period_size 2048
39buffer_size 24576
40format S16_LE
41rate 32000
42}
43}
44
45pcm.dmix_24000{
46type dmix
47ipc_key 5678293
48ipc_key_add_uid yes
49slave{
50pcm "hw:0,0"
51period_time 0
52period_size 2048
53buffer_size 24576
54format S16_LE
55rate 24000
56}
57}
58
59pcm.dmix_22050{
60type dmix
61ipc_key 5678293
62ipc_key_add_uid yes
63slave{
64pcm "hw:0,0"
65period_time 0
66period_size 2048
67buffer_size 24576
68format S16_LE
69rate 22050
70}
71}
72
73pcm.dmix_16000{
74type dmix
75ipc_key 5678293
76ipc_key_add_uid yes
77slave{
78pcm "hw:0,0"
79period_time 0
80period_size 2048
81buffer_size 24576
82format S16_LE
83rate 16000
84}
85}
86
87pcm.dmix_12000{
88type dmix
89ipc_key 5678293
90ipc_key_add_uid yes
91slave{
92pcm "hw:0,0"
93period_time 0
94period_size 2048
95buffer_size 24576
96format S16_LE
97rate 12000
98}
99}
100
101pcm.dmix_11025{
102type dmix
103ipc_key 5678293
104ipc_key_add_uid yes
105slave{
106pcm "hw:0,0"
107period_time 0
108period_size 2048
109buffer_size 24576
110format S16_LE
111rate 11025
112}
113}
114
115pcm.dmix_8000{
116type dmix
117ipc_key 5678293
118ipc_key_add_uid yes
119slave{
120pcm "hw:0,0"
121period_time 0
122period_size 2048
123buffer_size 24576
124format S16_LE
125rate 8000
126}
127}
128
129pcm.!dsnoop_48000{
130type dsnoop
131ipc_key 5778293
132ipc_key_add_uid yes
133slave{
134pcm "hw:0,0"
135period_time 0
136period_size 2048
137buffer_size 24576
138format S16_LE
139rate 48000
140}
141}
142
143pcm.!dsnoop_44100{
144type dsnoop
145ipc_key 5778293
146ipc_key_add_uid yes
147slave{
148pcm "hw:0,0"
149period_time 0
150period_size 2048
151buffer_size 24576
152format S16_LE
153rate 44100
154}
155}
156
157pcm.!dsnoop_32000{
158type dsnoop
159ipc_key 5778293
160ipc_key_add_uid yes
161slave{
162pcm "hw:0,0"
163period_time 0
164period_size 2048
165buffer_size 24576
166format S16_LE
167rate 32000
168}
169}
170
171pcm.!dsnoop_24000{
172type dsnoop
173ipc_key 5778293
174ipc_key_add_uid yes
175slave{
176pcm "hw:0,0"
177period_time 0
178period_size 2048
179buffer_size 24576
180format S16_LE
181rate 24000
182}
183}
184
185pcm.!dsnoop_22050{
186type dsnoop
187ipc_key 5778293
188ipc_key_add_uid yes
189slave{
190pcm "hw:0,0"
191period_time 0
192period_size 2048
193buffer_size 24576
194format S16_LE
195rate 22050
196}
197}
198
199pcm.!dsnoop_16000{
200type dsnoop
201ipc_key 5778293
202ipc_key_add_uid yes
203slave{
204pcm "hw:0,0"
205period_time 0
206period_size 2048
207buffer_size 24576
208format S16_LE
209rate 16000
210}
211}
212
213pcm.!dsnoop_12000{
214type dsnoop
215ipc_key 5778293
216ipc_key_add_uid yes
217slave{
218pcm "hw:0,0"
219period_time 0
220period_size 2048
221buffer_size 24576
222format S16_LE
223rate 12000
224}
225}
226
227pcm.!dsnoop_11025{
228type dsnoop
229ipc_key 5778293
230ipc_key_add_uid yes
231slave{
232pcm "hw:0,0"
233period_time 0
234period_size 2048
235buffer_size 24576
236format S16_LE
237rate 11025
238}
239}
240
241pcm.!dsnoop_8000{
242type dsnoop
243ipc_key 5778293
244ipc_key_add_uid yes
245slave{
246pcm "hw:0,0"
247period_time 0
248period_size 2048
249buffer_size 24576
250format S16_LE
251rate 8000
252}
253}
254
255pcm.asymed{
256type asym
257playback.pcm "dmix_44100"
258capture.pcm "dsnoop_44100"
259}
260
261pcm.dsp0{
262type plug
263slave.pcm "asymed"
264}
265
266pcm.!default{
267type plug
268route_policy "average"
269slave.pcm "asymed"
270}
271
272ctl.mixer0{
273type hw
274card 0
275}
diff --git a/recipes-bsp/alsa-state/alsa-state/mx5/asound.state b/recipes-bsp/alsa-state/alsa-state/mx5/asound.state
new file mode 100644
index 00000000..7c13a88a
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state/mx5/asound.state
@@ -0,0 +1,139 @@
1state.imx3stack {
2 control.1 {
3 iface MIXER
4 name 'MIC GAIN'
5 value '0dB'
6 comment {
7 access 'read write'
8 type ENUMERATED
9 count 1
10 item.0 '0dB'
11 item.1 '20dB'
12 item.2 '30dB'
13 item.3 '40dB'
14 }
15 }
16 control.2 {
17 iface MIXER
18 name 'Capture Volume'
19 value.0 12
20 value.1 12
21 comment {
22 access 'read write'
23 type INTEGER
24 count 2
25 range '0 - 15'
26 }
27 }
28 control.3 {
29 iface MIXER
30 name 'Capture Vol Reduction'
31 value 'No Change'
32 comment {
33 access 'read write'
34 type ENUMERATED
35 count 1
36 item.0 'No Change'
37 item.1 'Reduced by 6dB'
38 }
39 }
40 control.4 {
41 iface MIXER
42 name 'Playback Volume'
43 value.0 192
44 value.1 192
45 comment {
46 access 'read write'
47 type INTEGER
48 count 2
49 range '0 - 192'
50 }
51 }
52 control.5 {
53 iface MIXER
54 name 'Headphone Volume'
55 value.0 127
56 value.1 127
57 comment {
58 access 'read write'
59 type INTEGER
60 count 2
61 range '0 - 127'
62 }
63 }
64 control.6 {
65 iface MIXER
66 name 'DAC Mux'
67 value DAC
68 comment {
69 access 'read write'
70 type ENUMERATED
71 count 1
72 item.0 DAC
73 item.1 LINE_IN
74 }
75 }
76 control.7 {
77 iface MIXER
78 name 'ADC Mux'
79 value LINE_IN
80 comment {
81 access 'read write'
82 type ENUMERATED
83 count 1
84 item.0 MIC_IN
85 item.1 LINE_IN
86 }
87 }
88 control.8 {
89 iface MIXER
90 name ASRC
91 value disable
92 comment {
93 access 'read write'
94 type ENUMERATED
95 count 1
96 item.0 disable
97 item.1 '32KHz'
98 item.2 '44.1KHz'
99 item.3 '48KHz'
100 item.4 '96KHz'
101 }
102 }
103 control.9 {
104 iface MIXER
105 name 'Jack Function'
106 value on
107 comment {
108 access 'read write'
109 type ENUMERATED
110 count 1
111 item.0 off
112 item.1 on
113 }
114 }
115 control.10 {
116 iface MIXER
117 name 'Speaker Function'
118 value on
119 comment {
120 access 'read write'
121 type ENUMERATED
122 count 1
123 item.0 off
124 item.1 on
125 }
126 }
127 control.11 {
128 iface MIXER
129 name 'Line In Function'
130 value off
131 comment {
132 access 'read write'
133 type ENUMERATED
134 count 1
135 item.0 off
136 item.1 on
137 }
138 }
139}
diff --git a/recipes-bsp/alsa-state/alsa-state/mx6/asound.conf b/recipes-bsp/alsa-state/alsa-state/mx6/asound.conf
new file mode 100644
index 00000000..3f4e0482
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state/mx6/asound.conf
@@ -0,0 +1,257 @@
1defaults.pcm.rate_converter "linear"
2
3pcm.dmix_48000{
4type dmix
5ipc_key 5678293
6ipc_key_add_uid yes
7slave{
8pcm "hw:0,0"
9period_time 40000
10buffer_time 320000
11format S16_LE
12rate 48000
13}
14}
15
16pcm.dmix_44100{
17type dmix
18ipc_key 5678293
19ipc_key_add_uid yes
20slave{
21pcm "hw:0,0"
22period_time 40000
23buffer_time 360000
24format S16_LE
25rate 44100
26}
27}
28
29pcm.dmix_32000{
30type dmix
31ipc_key 5678293
32ipc_key_add_uid yes
33slave{
34pcm "hw:0,0"
35period_time 40000
36buffer_time 360000
37format S16_LE
38rate 32000
39}
40}
41
42pcm.dmix_24000{
43type dmix
44ipc_key 5678293
45ipc_key_add_uid yes
46slave{
47pcm "hw:0,0"
48period_time 40000
49buffer_time 360000
50format S16_LE
51rate 24000
52}
53}
54
55pcm.dmix_22050{
56type dmix
57ipc_key 5678293
58ipc_key_add_uid yes
59slave{
60pcm "hw:0,0"
61period_time 40000
62buffer_time 360000
63format S16_LE
64rate 22050
65}
66}
67
68pcm.dmix_16000{
69type dmix
70ipc_key 5678293
71ipc_key_add_uid yes
72slave{
73pcm "hw:0,0"
74period_time 40000
75buffer_time 360000
76format S16_LE
77rate 16000
78}
79}
80
81pcm.dmix_12000{
82type dmix
83ipc_key 5678293
84ipc_key_add_uid yes
85slave{
86pcm "hw:0,0"
87period_time 40000
88buffer_time 240000
89format S16_LE
90rate 12000
91}
92}
93
94pcm.dmix_11025{
95type dmix
96ipc_key 5678293
97ipc_key_add_uid yes
98slave{
99pcm "hw:0,0"
100period_time 40000
101buffer_time 240000
102format S16_LE
103rate 11025
104}
105}
106
107pcm.dmix_8000{
108type dmix
109ipc_key 5678293
110ipc_key_add_uid yes
111slave{
112pcm "hw:0,0"
113period_time 40000
114buffer_time 360000
115format S16_LE
116rate 8000
117}
118}
119
120pcm.!dsnoop_48000{
121type dsnoop
122ipc_key 5778293
123ipc_key_add_uid yes
124slave{
125pcm "hw:0,0"
126period_time 40000
127buffer_time 320000
128format S16_LE
129rate 48000
130}
131}
132
133pcm.!dsnoop_44100{
134type dsnoop
135ipc_key 5778293
136ipc_key_add_uid yes
137slave{
138pcm "hw:0,0"
139period_time 40000
140buffer_time 360000
141format S16_LE
142rate 44100
143}
144}
145
146pcm.!dsnoop_32000{
147type dsnoop
148ipc_key 5778293
149ipc_key_add_uid yes
150slave{
151pcm "hw:0,0"
152period_time 40000
153buffer_time 360000
154format S16_LE
155rate 32000
156}
157}
158
159pcm.!dsnoop_24000{
160type dsnoop
161ipc_key 5778293
162ipc_key_add_uid yes
163slave{
164pcm "hw:0,0"
165period_time 40000
166buffer_time 360000
167format S16_LE
168rate 24000
169}
170}
171
172pcm.!dsnoop_22050{
173type dsnoop
174ipc_key 5778293
175ipc_key_add_uid yes
176slave{
177pcm "hw:0,0"
178period_time 40000
179buffer_time 360000
180format S16_LE
181rate 22050
182}
183}
184
185pcm.!dsnoop_16000{
186type dsnoop
187ipc_key 5778293
188ipc_key_add_uid yes
189slave{
190pcm "hw:0,0"
191period_time 40000
192buffer_time 360000
193format S16_LE
194rate 16000
195}
196}
197
198pcm.!dsnoop_12000{
199type dsnoop
200ipc_key 5778293
201ipc_key_add_uid yes
202slave{
203pcm "hw:0,0"
204period_time 40000
205buffer_time 240000
206format S16_LE
207rate 12000
208}
209}
210
211pcm.!dsnoop_11025{
212type dsnoop
213ipc_key 5778293
214ipc_key_add_uid yes
215slave{
216pcm "hw:0,0"
217period_time 40000
218buffer_time 240000
219format S16_LE
220rate 11025
221}
222}
223
224pcm.!dsnoop_8000{
225type dsnoop
226ipc_key 5778293
227ipc_key_add_uid yes
228slave{
229pcm "hw:0,0"
230period_time 40000
231buffer_time 360000
232format S16_LE
233rate 8000
234}
235}
236
237pcm.asymed{
238type asym
239playback.pcm "dmix_44100"
240capture.pcm "dsnoop_44100"
241}
242
243pcm.dsp0{
244type plug
245slave.pcm "asymed"
246}
247
248pcm.!default{
249type plug
250route_policy "average"
251slave.pcm "asymed"
252}
253
254ctl.mixer0{
255type hw
256card 0
257}
diff --git a/recipes-bsp/alsa-state/alsa-state/mx6/asound.state b/recipes-bsp/alsa-state/alsa-state/mx6/asound.state
new file mode 100644
index 00000000..552f763d
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state/mx6/asound.state
@@ -0,0 +1,1374 @@
1state.wm8962audio {
2 control.1 {
3 iface MIXER
4 name 'Input Mixer Switch'
5 value.0 true
6 value.1 true
7 comment {
8 access 'read write'
9 type BOOLEAN
10 count 2
11 }
12 }
13 control.2 {
14 iface MIXER
15 name 'MIXINL IN2L Volume'
16 value 5
17 comment {
18 access 'read write'
19 type INTEGER
20 count 1
21 range '0 - 7'
22 dbmin -1500
23 dbmax 600
24 dbvalue.0 0
25 }
26 }
27 control.3 {
28 iface MIXER
29 name 'MIXINL PGA Volume'
30 value 0
31 comment {
32 access 'read write'
33 type INTEGER
34 count 1
35 range '0 - 7'
36 dbmin 0
37 dbmax 3000
38 dbvalue.0 0
39 }
40 }
41 control.4 {
42 iface MIXER
43 name 'MIXINL IN3L Volume'
44 value 5
45 comment {
46 access 'read write'
47 type INTEGER
48 count 1
49 range '0 - 7'
50 dbmin -1500
51 dbmax 600
52 dbvalue.0 0
53 }
54 }
55 control.5 {
56 iface MIXER
57 name 'MIXINR IN2R Volume'
58 value 5
59 comment {
60 access 'read write'
61 type INTEGER
62 count 1
63 range '0 - 7'
64 dbmin -1500
65 dbmax 600
66 dbvalue.0 0
67 }
68 }
69 control.6 {
70 iface MIXER
71 name 'MIXINR PGA Volume'
72 value 0
73 comment {
74 access 'read write'
75 type INTEGER
76 count 1
77 range '0 - 7'
78 dbmin 0
79 dbmax 3000
80 dbvalue.0 0
81 }
82 }
83 control.7 {
84 iface MIXER
85 name 'MIXINR IN3R Volume'
86 value 7
87 comment {
88 access 'read write'
89 type INTEGER
90 count 1
91 range '0 - 7'
92 dbmin -1500
93 dbmax 600
94 dbvalue.0 600
95 }
96 }
97 control.8 {
98 iface MIXER
99 name 'Digital Capture Volume'
100 value.0 108
101 value.1 108
102 comment {
103 access 'read write'
104 type INTEGER
105 count 2
106 range '0 - 127'
107 dbmin -9999999
108 dbmax 2325
109 dbvalue.0 900
110 dbvalue.1 900
111 }
112 }
113 control.9 {
114 iface MIXER
115 name 'Capture Volume'
116 value.0 63
117 value.1 63
118 comment {
119 access 'read write'
120 type INTEGER
121 count 2
122 range '0 - 63'
123 dbmin -2325
124 dbmax 2400
125 dbvalue.0 2400
126 dbvalue.1 2400
127 }
128 }
129 control.10 {
130 iface MIXER
131 name 'Capture Switch'
132 value.0 false
133 value.1 false
134 comment {
135 access 'read write'
136 type BOOLEAN
137 count 2
138 }
139 }
140 control.11 {
141 iface MIXER
142 name 'Capture ZC Switch'
143 value.0 true
144 value.1 true
145 comment {
146 access 'read write'
147 type BOOLEAN
148 count 2
149 }
150 }
151 control.12 {
152 iface MIXER
153 name 'Capture HPF Switch'
154 value true
155 comment {
156 access 'read write'
157 type BOOLEAN
158 count 1
159 }
160 }
161 control.13 {
162 iface MIXER
163 name 'Capture HPF Mode'
164 value Hi-fi
165 comment {
166 access 'read write'
167 type ENUMERATED
168 count 1
169 item.0 Hi-fi
170 item.1 Application
171 }
172 }
173 control.14 {
174 iface MIXER
175 name 'Capture HPF Cutoff'
176 value 0
177 comment {
178 access 'read write'
179 type INTEGER
180 count 1
181 range '0 - 7'
182 }
183 }
184 control.15 {
185 iface MIXER
186 name 'Capture LHPF Switch'
187 value false
188 comment {
189 access 'read write'
190 type BOOLEAN
191 count 1
192 }
193 }
194 control.16 {
195 iface MIXER
196 name 'Capture LHPF Mode'
197 value LPF
198 comment {
199 access 'read write'
200 type ENUMERATED
201 count 1
202 item.0 LPF
203 item.1 HPF
204 }
205 }
206 control.17 {
207 iface MIXER
208 name 'Sidetone Volume'
209 value.0 0
210 value.1 0
211 comment {
212 access 'read write'
213 type INTEGER
214 count 2
215 range '0 - 12'
216 dbmin -3600
217 dbmax 0
218 dbvalue.0 -3600
219 dbvalue.1 -3600
220 }
221 }
222 control.18 {
223 iface MIXER
224 name 'Digital Playback Volume'
225 value.0 96
226 value.1 96
227 comment {
228 access 'read write'
229 type INTEGER
230 count 2
231 range '0 - 127'
232 dbmin -9999999
233 dbmax 2325
234 dbvalue.0 0
235 dbvalue.1 0
236 }
237 }
238 control.19 {
239 iface MIXER
240 name 'DAC High Performance Switch'
241 value false
242 comment {
243 access 'read write'
244 type BOOLEAN
245 count 1
246 }
247 }
248 control.20 {
249 iface MIXER
250 name 'DAC L/R Swap Switch'
251 value false
252 comment {
253 access 'read write'
254 type BOOLEAN
255 count 1
256 }
257 }
258 control.21 {
259 iface MIXER
260 name 'ADC L/R Swap Switch'
261 value false
262 comment {
263 access 'read write'
264 type BOOLEAN
265 count 1
266 }
267 }
268 control.22 {
269 iface MIXER
270 name 'ADC High Performance Switch'
271 value true
272 comment {
273 access 'read write'
274 type BOOLEAN
275 count 1
276 }
277 }
278 control.23 {
279 iface MIXER
280 name 'Beep Volume'
281 value 0
282 comment {
283 access 'read write'
284 type INTEGER
285 count 1
286 range '0 - 15'
287 dbmin -9999999
288 dbmax -600
289 dbvalue.0 -9999999
290 }
291 }
292 control.24 {
293 iface MIXER
294 name 'Headphone Volume'
295 value.0 93
296 value.1 93
297 comment {
298 access 'read write'
299 type INTEGER
300 count 2
301 range '0 - 127'
302 dbmin -9999999
303 dbmax 600
304 dbvalue.0 -2800
305 dbvalue.1 -2800
306 }
307 }
308 control.25 {
309 iface MIXER
310 name 'Headphone Switch'
311 value.0 true
312 value.1 true
313 comment {
314 access 'read write'
315 type BOOLEAN
316 count 2
317 }
318 }
319 control.26 {
320 iface MIXER
321 name 'Headphone ZC Switch'
322 value.0 false
323 value.1 false
324 comment {
325 access 'read write'
326 type BOOLEAN
327 count 2
328 }
329 }
330 control.27 {
331 iface MIXER
332 name 'Headphone Aux Volume'
333 value.0 7
334 value.1 7
335 comment {
336 access 'read write'
337 type INTEGER
338 count 2
339 range '0 - 7'
340 dbmin -700
341 dbmax 0
342 dbvalue.0 0
343 dbvalue.1 0
344 }
345 }
346 control.28 {
347 iface MIXER
348 name 'Headphone Mixer Switch'
349 value.0 false
350 value.1 false
351 comment {
352 access 'read write'
353 type BOOLEAN
354 count 2
355 }
356 }
357 control.29 {
358 iface MIXER
359 name 'HPMIXL IN4L Volume'
360 value 7
361 comment {
362 access 'read write'
363 type INTEGER
364 count 1
365 range '0 - 7'
366 dbmin -1500
367 dbmax 600
368 dbvalue.0 600
369 }
370 }
371 control.30 {
372 iface MIXER
373 name 'HPMIXL IN4R Volume'
374 value 7
375 comment {
376 access 'read write'
377 type INTEGER
378 count 1
379 range '0 - 7'
380 dbmin -1500
381 dbmax 600
382 dbvalue.0 600
383 }
384 }
385 control.31 {
386 iface MIXER
387 name 'HPMIXL MIXINL Volume'
388 value 1
389 comment {
390 access 'read write'
391 type INTEGER
392 count 1
393 range '0 - 1'
394 dbmin -600
395 dbmax 0
396 dbvalue.0 0
397 }
398 }
399 control.32 {
400 iface MIXER
401 name 'HPMIXL MIXINR Volume'
402 value 1
403 comment {
404 access 'read write'
405 type INTEGER
406 count 1
407 range '0 - 1'
408 dbmin -600
409 dbmax 0
410 dbvalue.0 0
411 }
412 }
413 control.33 {
414 iface MIXER
415 name 'HPMIXR IN4L Volume'
416 value 7
417 comment {
418 access 'read write'
419 type INTEGER
420 count 1
421 range '0 - 7'
422 dbmin -1500
423 dbmax 600
424 dbvalue.0 600
425 }
426 }
427 control.34 {
428 iface MIXER
429 name 'HPMIXR IN4R Volume'
430 value 7
431 comment {
432 access 'read write'
433 type INTEGER
434 count 1
435 range '0 - 7'
436 dbmin -1500
437 dbmax 600
438 dbvalue.0 600
439 }
440 }
441 control.35 {
442 iface MIXER
443 name 'HPMIXR MIXINL Volume'
444 value 1
445 comment {
446 access 'read write'
447 type INTEGER
448 count 1
449 range '0 - 1'
450 dbmin -600
451 dbmax 0
452 dbvalue.0 0
453 }
454 }
455 control.36 {
456 iface MIXER
457 name 'HPMIXR MIXINR Volume'
458 value 1
459 comment {
460 access 'read write'
461 type INTEGER
462 count 1
463 range '0 - 1'
464 dbmin -600
465 dbmax 0
466 dbvalue.0 0
467 }
468 }
469 control.37 {
470 iface MIXER
471 name 'Speaker Boost Volume'
472 value 3
473 comment {
474 access 'read write'
475 type INTEGER
476 count 1
477 range '0 - 7'
478 dbmin 0
479 dbmax 1200
480 dbvalue.0 450
481 }
482 }
483 control.38 {
484 iface MIXER
485 name 'EQ Switch'
486 value false
487 comment {
488 access 'read write'
489 type BOOLEAN
490 count 1
491 }
492 }
493 control.39 {
494 iface MIXER
495 name 'EQ1 Volume'
496 value.0 12
497 value.1 12
498 comment {
499 access 'read write'
500 type INTEGER
501 count 2
502 range '0 - 31'
503 dbmin -1200
504 dbmax 1900
505 dbvalue.0 0
506 dbvalue.1 0
507 }
508 }
509 control.40 {
510 iface MIXER
511 name 'EQ2 Volume'
512 value.0 12
513 value.1 12
514 comment {
515 access 'read write'
516 type INTEGER
517 count 2
518 range '0 - 31'
519 dbmin -1200
520 dbmax 1900
521 dbvalue.0 0
522 dbvalue.1 0
523 }
524 }
525 control.41 {
526 iface MIXER
527 name 'EQ3 Volume'
528 value.0 12
529 value.1 12
530 comment {
531 access 'read write'
532 type INTEGER
533 count 2
534 range '0 - 31'
535 dbmin -1200
536 dbmax 1900
537 dbvalue.0 0
538 dbvalue.1 0
539 }
540 }
541 control.42 {
542 iface MIXER
543 name 'EQ4 Volume'
544 value.0 12
545 value.1 12
546 comment {
547 access 'read write'
548 type INTEGER
549 count 2
550 range '0 - 31'
551 dbmin -1200
552 dbmax 1900
553 dbvalue.0 0
554 dbvalue.1 0
555 }
556 }
557 control.43 {
558 iface MIXER
559 name 'EQ5 Volume'
560 value.0 12
561 value.1 12
562 comment {
563 access 'read write'
564 type INTEGER
565 count 2
566 range '0 - 31'
567 dbmin -1200
568 dbmax 1900
569 dbvalue.0 0
570 dbvalue.1 0
571 }
572 }
573 control.44 {
574 iface MIXER
575 name '3D Switch'
576 value false
577 comment {
578 access 'read write'
579 type BOOLEAN
580 count 1
581 }
582 }
583 control.45 {
584 iface MIXER
585 name '3D Coefficients'
586 value '0040000000000000'
587 comment {
588 access 'read write'
589 type BYTES
590 count 8
591 }
592 }
593 control.46 {
594 iface MIXER
595 name 'DF1 Switch'
596 value false
597 comment {
598 access 'read write'
599 type BOOLEAN
600 count 1
601 }
602 }
603 control.47 {
604 iface MIXER
605 name 'DF1 Coefficients'
606 value '0000000000000000000000000000'
607 comment {
608 access 'read write'
609 type BYTES
610 count 14
611 }
612 }
613 control.48 {
614 iface MIXER
615 name 'DRC Switch'
616 value false
617 comment {
618 access 'read write'
619 type BOOLEAN
620 count 1
621 }
622 }
623 control.49 {
624 iface MIXER
625 name 'DRC Coefficients'
626 value '000c0925000000000000'
627 comment {
628 access 'read write'
629 type BYTES
630 count 10
631 }
632 }
633 control.50 {
634 iface MIXER
635 name 'VSS Switch'
636 value false
637 comment {
638 access 'read write'
639 type BOOLEAN
640 count 1
641 }
642 }
643 control.51 {
644 iface MIXER
645 name 'VSS Coefficients'
646 value '008c020000350700003a4100008b7d00003a4100008cfee800780000003fb260002d18180020000000f1834000fb830000eeaec000fbac4000f17f8000f43b4000f5fb0000ea10c000fcc58000e275c00004b48000d4f9800004914000d8a48000023dc000cf7a8000dc060000f2dac000baf340000a7940001c068000fd2d00001ce840000ddc4000fc9d000009558000fe7e80000eab4000f99880000987c000fd2c400009480000035f400000870000fae4c000000b400004e18000011f4000f8b00000fbcbc00004f3800007df4000ff070000efd70000fbaf4000108a80001107c000e0080000d276000020cf400030234000fd69c0002835000006330000d9f6c000f33340000f420000040c8000fb3f8000f757c0000354000000c6c0000312c000fd8580'
647 comment {
648 access 'read write'
649 type BYTES
650 count 296
651 }
652 }
653 control.52 {
654 iface MIXER
655 name 'HPF1 Switch'
656 value false
657 comment {
658 access 'read write'
659 type BOOLEAN
660 count 1
661 }
662 }
663 control.53 {
664 iface MIXER
665 name 'HPF2 Switch'
666 value false
667 comment {
668 access 'read write'
669 type BOOLEAN
670 count 1
671 }
672 }
673 control.54 {
674 iface MIXER
675 name 'HPF Coefficients'
676 value '0000'
677 comment {
678 access 'read write'
679 type BYTES
680 count 2
681 }
682 }
683 control.55 {
684 iface MIXER
685 name 'HD Bass Switch'
686 value false
687 comment {
688 access 'read write'
689 type BOOLEAN
690 count 1
691 }
692 }
693 control.56 {
694 iface MIXER
695 name 'HD Bass Coefficients'
696 value '0002bd12007c586c00538121003f8bd80032f52d0065ac8c006be08700721483007214830043352500066a4a0043607900080000000100000059999a'
697 comment {
698 access 'read write'
699 type BYTES
700 count 60
701 }
702 }
703 control.57 {
704 iface MIXER
705 name 'Speaker Volume'
706 value.0 114
707 value.1 114
708 comment {
709 access 'read write'
710 type INTEGER
711 count 2
712 range '0 - 127'
713 dbmin -9999999
714 dbmax 600
715 dbvalue.0 -700
716 dbvalue.1 -700
717 }
718 }
719 control.58 {
720 iface MIXER
721 name 'Speaker Switch'
722 value.0 false
723 value.1 false
724 comment {
725 access 'read write'
726 type BOOLEAN
727 count 2
728 }
729 }
730 control.59 {
731 iface MIXER
732 name 'Speaker ZC Switch'
733 value.0 false
734 value.1 false
735 comment {
736 access 'read write'
737 type BOOLEAN
738 count 2
739 }
740 }
741 control.60 {
742 iface MIXER
743 name 'Speaker Mixer Switch'
744 value.0 false
745 value.1 false
746 comment {
747 access 'read write'
748 type BOOLEAN
749 count 2
750 }
751 }
752 control.61 {
753 iface MIXER
754 name 'SPKOUTL Mixer IN4L Volume'
755 value 7
756 comment {
757 access 'read write'
758 type INTEGER
759 count 1
760 range '0 - 7'
761 dbmin -1500
762 dbmax 600
763 dbvalue.0 600
764 }
765 }
766 control.62 {
767 iface MIXER
768 name 'SPKOUTL Mixer IN4R Volume'
769 value 7
770 comment {
771 access 'read write'
772 type INTEGER
773 count 1
774 range '0 - 7'
775 dbmin -1500
776 dbmax 600
777 dbvalue.0 600
778 }
779 }
780 control.63 {
781 iface MIXER
782 name 'SPKOUTL Mixer MIXINL Volume'
783 value 1
784 comment {
785 access 'read write'
786 type INTEGER
787 count 1
788 range '0 - 1'
789 dbmin -600
790 dbmax 0
791 dbvalue.0 0
792 }
793 }
794 control.64 {
795 iface MIXER
796 name 'SPKOUTL Mixer MIXINR Volume'
797 value 1
798 comment {
799 access 'read write'
800 type INTEGER
801 count 1
802 range '0 - 1'
803 dbmin -600
804 dbmax 0
805 dbvalue.0 0
806 }
807 }
808 control.65 {
809 iface MIXER
810 name 'SPKOUTL Mixer DACL Volume'
811 value 0
812 comment {
813 access 'read write'
814 type INTEGER
815 count 1
816 range '0 - 1'
817 dbmin -600
818 dbmax 0
819 dbvalue.0 -600
820 }
821 }
822 control.66 {
823 iface MIXER
824 name 'SPKOUTL Mixer DACR Volume'
825 value 0
826 comment {
827 access 'read write'
828 type INTEGER
829 count 1
830 range '0 - 1'
831 dbmin -600
832 dbmax 0
833 dbvalue.0 -600
834 }
835 }
836 control.67 {
837 iface MIXER
838 name 'SPKOUTR Mixer IN4L Volume'
839 value 7
840 comment {
841 access 'read write'
842 type INTEGER
843 count 1
844 range '0 - 7'
845 dbmin -1500
846 dbmax 600
847 dbvalue.0 600
848 }
849 }
850 control.68 {
851 iface MIXER
852 name 'SPKOUTR Mixer IN4R Volume'
853 value 7
854 comment {
855 access 'read write'
856 type INTEGER
857 count 1
858 range '0 - 7'
859 dbmin -1500
860 dbmax 600
861 dbvalue.0 600
862 }
863 }
864 control.69 {
865 iface MIXER
866 name 'SPKOUTR Mixer MIXINL Volume'
867 value 1
868 comment {
869 access 'read write'
870 type INTEGER
871 count 1
872 range '0 - 1'
873 dbmin -600
874 dbmax 0
875 dbvalue.0 0
876 }
877 }
878 control.70 {
879 iface MIXER
880 name 'SPKOUTR Mixer MIXINR Volume'
881 value 1
882 comment {
883 access 'read write'
884 type INTEGER
885 count 1
886 range '0 - 1'
887 dbmin -600
888 dbmax 0
889 dbvalue.0 0
890 }
891 }
892 control.71 {
893 iface MIXER
894 name 'SPKOUTR Mixer DACL Volume'
895 value 0
896 comment {
897 access 'read write'
898 type INTEGER
899 count 1
900 range '0 - 1'
901 dbmin -600
902 dbmax 0
903 dbvalue.0 -600
904 }
905 }
906 control.72 {
907 iface MIXER
908 name 'SPKOUTR Mixer DACR Volume'
909 value 0
910 comment {
911 access 'read write'
912 type INTEGER
913 count 1
914 range '0 - 1'
915 dbmin -600
916 dbmax 0
917 dbvalue.0 -600
918 }
919 }
920 control.73 {
921 iface MIXER
922 name 'SPKOUTR PGA'
923 value DAC
924 comment {
925 access 'read write'
926 type ENUMERATED
927 count 1
928 item.0 DAC
929 item.1 Mixer
930 }
931 }
932 control.74 {
933 iface MIXER
934 name 'SPKOUTL PGA'
935 value DAC
936 comment {
937 access 'read write'
938 type ENUMERATED
939 count 1
940 item.0 DAC
941 item.1 Mixer
942 }
943 }
944 control.75 {
945 iface MIXER
946 name 'SPKOUTR Mixer DACL Switch'
947 value false
948 comment {
949 access 'read write'
950 type BOOLEAN
951 count 1
952 }
953 }
954 control.76 {
955 iface MIXER
956 name 'SPKOUTR Mixer DACR Switch'
957 value false
958 comment {
959 access 'read write'
960 type BOOLEAN
961 count 1
962 }
963 }
964 control.77 {
965 iface MIXER
966 name 'SPKOUTR Mixer MIXINL Switch'
967 value false
968 comment {
969 access 'read write'
970 type BOOLEAN
971 count 1
972 }
973 }
974 control.78 {
975 iface MIXER
976 name 'SPKOUTR Mixer MIXINR Switch'
977 value false
978 comment {
979 access 'read write'
980 type BOOLEAN
981 count 1
982 }
983 }
984 control.79 {
985 iface MIXER
986 name 'SPKOUTR Mixer IN4L Switch'
987 value false
988 comment {
989 access 'read write'
990 type BOOLEAN
991 count 1
992 }
993 }
994 control.80 {
995 iface MIXER
996 name 'SPKOUTR Mixer IN4R Switch'
997 value false
998 comment {
999 access 'read write'
1000 type BOOLEAN
1001 count 1
1002 }
1003 }
1004 control.81 {
1005 iface MIXER
1006 name 'SPKOUTL Mixer DACL Switch'
1007 value false
1008 comment {
1009 access 'read write'
1010 type BOOLEAN
1011 count 1
1012 }
1013 }
1014 control.82 {
1015 iface MIXER
1016 name 'SPKOUTL Mixer DACR Switch'
1017 value false
1018 comment {
1019 access 'read write'
1020 type BOOLEAN
1021 count 1
1022 }
1023 }
1024 control.83 {
1025 iface MIXER
1026 name 'SPKOUTL Mixer MIXINL Switch'
1027 value false
1028 comment {
1029 access 'read write'
1030 type BOOLEAN
1031 count 1
1032 }
1033 }
1034 control.84 {
1035 iface MIXER
1036 name 'SPKOUTL Mixer MIXINR Switch'
1037 value false
1038 comment {
1039 access 'read write'
1040 type BOOLEAN
1041 count 1
1042 }
1043 }
1044 control.85 {
1045 iface MIXER
1046 name 'SPKOUTL Mixer IN4L Switch'
1047 value false
1048 comment {
1049 access 'read write'
1050 type BOOLEAN
1051 count 1
1052 }
1053 }
1054 control.86 {
1055 iface MIXER
1056 name 'SPKOUTL Mixer IN4R Switch'
1057 value false
1058 comment {
1059 access 'read write'
1060 type BOOLEAN
1061 count 1
1062 }
1063 }
1064 control.87 {
1065 iface MIXER
1066 name 'HPOUTR PGA'
1067 value DAC
1068 comment {
1069 access 'read write'
1070 type ENUMERATED
1071 count 1
1072 item.0 DAC
1073 item.1 Mixer
1074 }
1075 }
1076 control.88 {
1077 iface MIXER
1078 name 'HPOUTL PGA'
1079 value DAC
1080 comment {
1081 access 'read write'
1082 type ENUMERATED
1083 count 1
1084 item.0 DAC
1085 item.1 Mixer
1086 }
1087 }
1088 control.89 {
1089 iface MIXER
1090 name 'HPMIXR DACL Switch'
1091 value false
1092 comment {
1093 access 'read write'
1094 type BOOLEAN
1095 count 1
1096 }
1097 }
1098 control.90 {
1099 iface MIXER
1100 name 'HPMIXR DACR Switch'
1101 value false
1102 comment {
1103 access 'read write'
1104 type BOOLEAN
1105 count 1
1106 }
1107 }
1108 control.91 {
1109 iface MIXER
1110 name 'HPMIXR MIXINL Switch'
1111 value false
1112 comment {
1113 access 'read write'
1114 type BOOLEAN
1115 count 1
1116 }
1117 }
1118 control.92 {
1119 iface MIXER
1120 name 'HPMIXR MIXINR Switch'
1121 value false
1122 comment {
1123 access 'read write'
1124 type BOOLEAN
1125 count 1
1126 }
1127 }
1128 control.93 {
1129 iface MIXER
1130 name 'HPMIXR IN4L Switch'
1131 value false
1132 comment {
1133 access 'read write'
1134 type BOOLEAN
1135 count 1
1136 }
1137 }
1138 control.94 {
1139 iface MIXER
1140 name 'HPMIXR IN4R Switch'
1141 value false
1142 comment {
1143 access 'read write'
1144 type BOOLEAN
1145 count 1
1146 }
1147 }
1148 control.95 {
1149 iface MIXER
1150 name 'HPMIXL DACL Switch'
1151 value false
1152 comment {
1153 access 'read write'
1154 type BOOLEAN
1155 count 1
1156 }
1157 }
1158 control.96 {
1159 iface MIXER
1160 name 'HPMIXL DACR Switch'
1161 value false
1162 comment {
1163 access 'read write'
1164 type BOOLEAN
1165 count 1
1166 }
1167 }
1168 control.97 {
1169 iface MIXER
1170 name 'HPMIXL MIXINL Switch'
1171 value false
1172 comment {
1173 access 'read write'
1174 type BOOLEAN
1175 count 1
1176 }
1177 }
1178 control.98 {
1179 iface MIXER
1180 name 'HPMIXL MIXINR Switch'
1181 value false
1182 comment {
1183 access 'read write'
1184 type BOOLEAN
1185 count 1
1186 }
1187 }
1188 control.99 {
1189 iface MIXER
1190 name 'HPMIXL IN4L Switch'
1191 value false
1192 comment {
1193 access 'read write'
1194 type BOOLEAN
1195 count 1
1196 }
1197 }
1198 control.100 {
1199 iface MIXER
1200 name 'HPMIXL IN4R Switch'
1201 value false
1202 comment {
1203 access 'read write'
1204 type BOOLEAN
1205 count 1
1206 }
1207 }
1208 control.101 {
1209 iface MIXER
1210 name STR
1211 value None
1212 comment {
1213 access 'read write'
1214 type ENUMERATED
1215 count 1
1216 item.0 None
1217 item.1 Left
1218 item.2 Right
1219 }
1220 }
1221 control.102 {
1222 iface MIXER
1223 name STL
1224 value None
1225 comment {
1226 access 'read write'
1227 type ENUMERATED
1228 count 1
1229 item.0 None
1230 item.1 Left
1231 item.2 Right
1232 }
1233 }
1234 control.103 {
1235 iface MIXER
1236 name 'MIXINR IN2R Switch'
1237 value false
1238 comment {
1239 access 'read write'
1240 type BOOLEAN
1241 count 1
1242 }
1243 }
1244 control.104 {
1245 iface MIXER
1246 name 'MIXINR IN3R Switch'
1247 value false
1248 comment {
1249 access 'read write'
1250 type BOOLEAN
1251 count 1
1252 }
1253 }
1254 control.105 {
1255 iface MIXER
1256 name 'MIXINR PGA Switch'
1257 value true
1258 comment {
1259 access 'read write'
1260 type BOOLEAN
1261 count 1
1262 }
1263 }
1264 control.106 {
1265 iface MIXER
1266 name 'MIXINL IN2L Switch'
1267 value false
1268 comment {
1269 access 'read write'
1270 type BOOLEAN
1271 count 1
1272 }
1273 }
1274 control.107 {
1275 iface MIXER
1276 name 'MIXINL IN3L Switch'
1277 value false
1278 comment {
1279 access 'read write'
1280 type BOOLEAN
1281 count 1
1282 }
1283 }
1284 control.108 {
1285 iface MIXER
1286 name 'MIXINL PGA Switch'
1287 value true
1288 comment {
1289 access 'read write'
1290 type BOOLEAN
1291 count 1
1292 }
1293 }
1294 control.109 {
1295 iface MIXER
1296 name 'INPGAR IN1R Switch'
1297 value true
1298 comment {
1299 access 'read write'
1300 type BOOLEAN
1301 count 1
1302 }
1303 }
1304 control.110 {
1305 iface MIXER
1306 name 'INPGAR IN2R Switch'
1307 value false
1308 comment {
1309 access 'read write'
1310 type BOOLEAN
1311 count 1
1312 }
1313 }
1314 control.111 {
1315 iface MIXER
1316 name 'INPGAR IN3R Switch'
1317 value false
1318 comment {
1319 access 'read write'
1320 type BOOLEAN
1321 count 1
1322 }
1323 }
1324 control.112 {
1325 iface MIXER
1326 name 'INPGAR IN4R Switch'
1327 value false
1328 comment {
1329 access 'read write'
1330 type BOOLEAN
1331 count 1
1332 }
1333 }
1334 control.113 {
1335 iface MIXER
1336 name 'INPGAL IN1L Switch'
1337 value true
1338 comment {
1339 access 'read write'
1340 type BOOLEAN
1341 count 1
1342 }
1343 }
1344 control.114 {
1345 iface MIXER
1346 name 'INPGAL IN2L Switch'
1347 value false
1348 comment {
1349 access 'read write'
1350 type BOOLEAN
1351 count 1
1352 }
1353 }
1354 control.115 {
1355 iface MIXER
1356 name 'INPGAL IN3L Switch'
1357 value false
1358 comment {
1359 access 'read write'
1360 type BOOLEAN
1361 count 1
1362 }
1363 }
1364 control.116 {
1365 iface MIXER
1366 name 'INPGAL IN4L Switch'
1367 value false
1368 comment {
1369 access 'read write'
1370 type BOOLEAN
1371 count 1
1372 }
1373 }
1374}
diff --git a/recipes-bsp/alsa-state/alsa-state/mxs/asound.conf b/recipes-bsp/alsa-state/alsa-state/mxs/asound.conf
new file mode 100644
index 00000000..39cb3961
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state/mxs/asound.conf
@@ -0,0 +1,299 @@
1defaults.pcm.rate_converter "linear"
2
3pcm.dmix_48000{
4type plug
5slave.pcm{
6type dmix
7ipc_key 5678293
8ipc_key_add_uid yes
9slave{
10pcm "hw:0,0"
11period_time 0
12period_size 2048
13buffer_size 24576
14format S16_LE
15rate 48000
16}
17}
18}
19
20pcm.dmix_44100{
21type dmix
22ipc_key 5678293
23ipc_key_add_uid yes
24slave{
25pcm "hw:0,0"
26period_time 0
27period_size 2048
28buffer_size 24576
29format S16_LE
30rate 44100
31}
32}
33
34pcm.dmix_32000{
35type plug
36slave.pcm{
37type dmix
38ipc_key 5678293
39ipc_key_add_uid yes
40slave{
41pcm "hw:0,0"
42period_time 0
43period_size 2048
44buffer_size 24576
45format S16_LE
46rate 32000
47}
48}
49}
50
51pcm.dmix_24000{
52type plug
53slave.pcm{
54type dmix
55ipc_key 5678293
56ipc_key_add_uid yes
57slave{
58pcm "hw:0,0"
59period_time 0
60period_size 2048
61buffer_size 24576
62format S16_LE
63rate 24000
64}
65}
66}
67
68pcm.dmix_22050{
69type plug
70slave.pcm{
71type dmix
72ipc_key 5678293
73ipc_key_add_uid yes
74slave{
75pcm "hw:0,0"
76period_time 0
77period_size 2048
78buffer_size 24576
79format S16_LE
80rate 22050
81}
82}
83}
84
85pcm.dmix_16000{
86type plug
87slave.pcm{
88type dmix
89ipc_key 5678293
90ipc_key_add_uid yes
91slave{
92pcm "hw:0,0"
93period_time 0
94period_size 2048
95buffer_size 24576
96format S16_LE
97rate 16000
98}
99}
100}
101
102pcm.dmix_12000{
103type plug
104slave.pcm{
105type dmix
106ipc_key 5678293
107ipc_key_add_uid yes
108slave{
109pcm "hw:0,0"
110period_time 0
111period_size 2048
112buffer_size 24576
113format S16_LE
114rate 12000
115}
116}
117}
118
119pcm.dmix_11025{
120type plug
121slave.pcm{
122type dmix
123ipc_key 5678293
124ipc_key_add_uid yes
125slave{
126pcm "hw:0,0"
127period_time 0
128period_size 2048
129buffer_size 24576
130format S16_LE
131rate 11025
132}
133}
134}
135
136pcm.dmix_8000{
137type plug
138slave.pcm{
139type dmix
140ipc_key 5678293
141ipc_key_add_uid yes
142slave{
143pcm "hw:0,0"
144period_time 0
145period_size 2048
146buffer_size 24576
147format S16_LE
148rate 8000
149}
150}
151}
152
153pcm.!dsnoop_48000{
154type dsnoop
155ipc_key 5778293
156ipc_key_add_uid yes
157slave{
158pcm "hw:0,0"
159period_time 0
160period_size 2048
161buffer_size 24576
162format S16_LE
163rate 48000
164}
165}
166
167pcm.!dsnoop_44100{
168type dsnoop
169ipc_key 5778293
170ipc_key_add_uid yes
171slave{
172pcm "hw:0,0"
173period_time 0
174period_size 2048
175buffer_size 24576
176format S16_LE
177rate 44100
178}
179}
180
181pcm.!dsnoop_32000{
182type dsnoop
183ipc_key 5778293
184ipc_key_add_uid yes
185slave{
186pcm "hw:0,0"
187period_time 0
188period_size 2048
189buffer_size 24576
190format S16_LE
191rate 32000
192}
193}
194
195pcm.!dsnoop_24000{
196type dsnoop
197ipc_key 5778293
198ipc_key_add_uid yes
199slave{
200pcm "hw:0,0"
201period_time 0
202period_size 2048
203buffer_size 24576
204format S16_LE
205rate 24000
206}
207}
208
209pcm.!dsnoop_22050{
210type dsnoop
211ipc_key 5778293
212ipc_key_add_uid yes
213slave{
214pcm "hw:0,0"
215period_time 0
216period_size 2048
217buffer_size 24576
218format S16_LE
219rate 22050
220}
221}
222
223pcm.!dsnoop_16000{
224type dsnoop
225ipc_key 5778293
226ipc_key_add_uid yes
227slave{
228pcm "hw:0,0"
229period_time 0
230period_size 2048
231buffer_size 24576
232format S16_LE
233rate 16000
234}
235}
236
237pcm.!dsnoop_12000{
238type dsnoop
239ipc_key 5778293
240ipc_key_add_uid yes
241slave{
242pcm "hw:0,0"
243period_time 0
244period_size 2048
245buffer_size 24576
246format S16_LE
247rate 12000
248}
249}
250
251pcm.!dsnoop_11025{
252type dsnoop
253ipc_key 5778293
254ipc_key_add_uid yes
255slave{
256pcm "hw:0,0"
257period_time 0
258period_size 2048
259buffer_size 24576
260format S16_LE
261rate 11025
262}
263}
264
265pcm.!dsnoop_8000{
266type dsnoop
267ipc_key 5778293
268ipc_key_add_uid yes
269slave{
270pcm "hw:0,0"
271period_time 0
272period_size 2048
273buffer_size 24576
274format S16_LE
275rate 8000
276}
277}
278
279pcm.asymed{
280type asym
281playback.pcm "dmix_44100"
282capture.pcm "dsnoop_44100"
283}
284
285pcm.dsp0{
286type plug
287slave.pcm "asymed"
288}
289
290pcm.!default{
291type plug
292route_policy "average"
293slave.pcm "asymed"
294}
295
296ctl.mixer0{
297type hw
298card 0
299}
diff --git a/recipes-bsp/alsa-state/alsa-state/mxs/asound.state b/recipes-bsp/alsa-state/alsa-state/mxs/asound.state
new file mode 100644
index 00000000..d508cc36
--- /dev/null
+++ b/recipes-bsp/alsa-state/alsa-state/mxs/asound.state
@@ -0,0 +1,191 @@
1state.mxsevk {
2 control.1 {
3 iface MIXER
4 name 'MIC GAIN'
5 value '0dB'
6 comment {
7 access 'read write'
8 type ENUMERATED
9 count 1
10 item.0 '0dB'
11 item.1 '20dB'
12 item.2 '30dB'
13 item.3 '40dB'
14 }
15 }
16 control.2 {
17 iface MIXER
18 name 'Capture Volume'
19 value.0 12
20 value.1 12
21 comment {
22 access 'read write'
23 type INTEGER
24 count 2
25 range '0 - 15'
26 }
27 }
28 control.3 {
29 iface MIXER
30 name 'Capture Vol Reduction'
31 value 'No Change'
32 comment {
33 access 'read write'
34 type ENUMERATED
35 count 1
36 item.0 'No Change'
37 item.1 'Reduced by 6dB'
38 }
39 }
40 control.4 {
41 iface MIXER
42 name 'Playback Volume'
43 value.0 156
44 value.1 156
45 comment {
46 access 'read write'
47 type INTEGER
48 count 2
49 range '0 - 192'
50 }
51 }
52 control.5 {
53 iface MIXER
54 name 'Headphone Volume'
55 value.0 127
56 value.1 127
57 comment {
58 access 'read write'
59 type INTEGER
60 count 2
61 range '0 - 127'
62 }
63 }
64 control.6 {
65 iface MIXER
66 name 'DAC Mux'
67 value DAC
68 comment {
69 access 'read write'
70 type ENUMERATED
71 count 1
72 item.0 DAC
73 item.1 LINE_IN
74 }
75 }
76 control.7 {
77 iface MIXER
78 name 'ADC Mux'
79 value MIC_IN
80 comment {
81 access 'read write'
82 type ENUMERATED
83 count 1
84 item.0 MIC_IN
85 item.1 LINE_IN
86 }
87 }
88}
89state.mxsevk_1 {
90 control.1 {
91 iface MIXER
92 name PRO
93 value false
94 comment {
95 access 'read write'
96 type BOOLEAN
97 count 1
98 }
99 }
100 control.2 {
101 iface MIXER
102 name AUDIO
103 value false
104 comment {
105 access 'read write'
106 type BOOLEAN
107 count 1
108 }
109 }
110 control.3 {
111 iface MIXER
112 name COPY
113 value false
114 comment {
115 access 'read write'
116 type BOOLEAN
117 count 1
118 }
119 }
120 control.4 {
121 iface MIXER
122 name PRE
123 value false
124 comment {
125 access 'read write'
126 type BOOLEAN
127 count 1
128 }
129 }
130 control.5 {
131 iface MIXER
132 name CC
133 value 0
134 comment {
135 access 'read write'
136 type INTEGER
137 count 1
138 range '0 - 127'
139 }
140 }
141 control.6 {
142 iface MIXER
143 name L
144 value false
145 comment {
146 access 'read write'
147 type BOOLEAN
148 count 1
149 }
150 }
151 control.7 {
152 iface MIXER
153 name V
154 value false
155 comment {
156 access 'read write'
157 type BOOLEAN
158 count 1
159 }
160 }
161 control.8 {
162 iface MIXER
163 name 'USER DATA'
164 value false
165 comment {
166 access 'read write'
167 type BOOLEAN
168 count 1
169 }
170 }
171 control.9 {
172 iface MIXER
173 name 'AUTO MUTE'
174 value false
175 comment {
176 access 'read write'
177 type BOOLEAN
178 count 1
179 }
180 }
181 control.10 {
182 iface MIXER
183 name 'V CONFIG'
184 value false
185 comment {
186 access 'read write'
187 type BOOLEAN
188 count 1
189 }
190 }
191}