• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Configuration for the Audigy2 chip
3#
4
5<confdir:pcm/front.conf>
6
7Audigy2.pcm.front.0 {
8	@args [ CARD ]
9	@args.CARD {
10		type string
11	}
12	type hooks
13	slave.pcm {
14		type hw
15		card $CARD
16		chmap [ "UNKNOWN" "FL,FR" ]
17	}
18	hooks.0 {
19		type ctl_elems
20		hook_args [
21			{
22				interface PCM
23				name "EMU10K1 PCM Send Volume"
24				index { @func private_pcm_subdevice }
25				lock true
26				optional true
27				value [ 255 255 0 0 0 0 0 0  255 0 0 0 0 0 0 0  0 255 0 0 0 0 0 0 ]
28			}
29			{
30				# for compatibility with older drivers
31				name "EMU10K1 PCM Send Volume"
32				index { @func private_pcm_subdevice }
33				lock true
34				optional true
35				value [ 255 255 0 0 0 0 0 0  255 0 0 0 0 0 0 0  0 255 0 0 0 0 0 0 ]
36			}
37			{
38				interface PCM
39				name "EMU10K1 PCM Send Routing"
40				index { @func private_pcm_subdevice }
41				lock true
42				optional true
43				value [ 8 9 0 0 0 0 0 0  8 9 0 0 0 0 0 0  8 9 0 0 0 0 0 0 ]
44			}
45			{
46				# for compatibility with older drivers
47				name "EMU10K1 PCM Send Routing"
48				index { @func private_pcm_subdevice }
49				lock true
50				optional true
51				value [ 8 9 0 0 0 0 0 0  8 9 0 0 0 0 0 0  8 9 0 0 0 0 0 0 ]
52			}
53
54		]
55	}
56}
57
58<confdir:pcm/rear.conf>
59
60Audigy2.pcm.rear.0 {
61	@args [ CARD ]
62	@args.CARD {
63		type string
64	}
65	type hooks
66	slave.pcm {
67		type hw
68		card $CARD
69		chmap [ "UNKNOWN" "RL,RR" ]
70	}
71	hooks.0 {
72		type ctl_elems
73		hook_args [
74			{
75				interface PCM
76				name "EMU10K1 PCM Send Volume"
77				index { @func private_pcm_subdevice }
78				lock true
79				optional true
80				value [ 0 0 255 255 0 0 0 0  0 0 255 0 0 0 0 0  0 0 0 255 0 0 0 0 ]
81			}
82			{
83				# for compatibility with older drivers
84				name "EMU10K1 PCM Send Volume"
85				index { @func private_pcm_subdevice }
86				lock true
87				optional true
88				value [ 0 0 255 255 0 0 0 0  0 0 255 0 0 0 0 0  0 0 0 255 0 0 0 0 ]
89			}
90		]
91	}
92}
93
94<confdir:pcm/center_lfe.conf>
95
96Audigy2.pcm.center_lfe.0 {
97	@args [ CARD ]
98	@args.CARD {
99		type string
100	}
101	type hooks
102	slave.pcm {
103		type hw
104		card $CARD
105		chmap [ "UNKNOWN" "FC,LFE" ]
106	}
107	hooks.0 {
108		type ctl_elems
109		hook_args [
110			{
111				interface PCM
112				name "EMU10K1 PCM Send Volume"
113				index { @func private_pcm_subdevice }
114				lock true
115				optional true
116				value [ 255 255 0 0 0 0 0 0  255 0 0 0 0 0 0 0  0 255 0 0 0 0 0 0 ]
117			}
118			{
119				# for compatibility with older drivers
120				name "EMU10K1 PCM Send Volume"
121				index { @func private_pcm_subdevice }
122				lock true
123				optional true
124				value [ 255 255 0 0 0 0 0 0  255 0 0 0 0 0 0 0  0 255 0 0 0 0 0 0 ]
125			}
126			{
127				interface PCM
128				name "EMU10K1 PCM Send Routing"
129				index { @func private_pcm_subdevice }
130				lock true
131				optional true
132				value [ 6 7 0 0 0 0 0 0  6 7 0 0 0 0 0 0  6 7 0 0 0 0 0 0 ]
133			}
134			{
135				# for compatibility with older drivers
136				name "EMU10K1 PCM Send Routing"
137				index { @func private_pcm_subdevice }
138				lock true
139				optional true
140				value [ 6 7 0 0 0 0 0 0  6 7 0 0 0 0 0 0  6 7 0 0 0 0 0 0 ]
141			}
142		]
143	}
144}
145
146<confdir:pcm/side.conf>
147
148Audigy2.pcm.side.0 {
149	@args [ CARD ]
150	@args.CARD {
151		type string
152	}
153	type hooks
154	slave.pcm {
155		type hw
156		card $CARD
157		chmap [ "UNKNOWN" "SL,SR" ]
158	}
159	hooks.0 {
160		type ctl_elems
161		hook_args [
162			{
163				interface PCM
164				name "EMU10K1 PCM Send Volume"
165				index { @func private_pcm_subdevice }
166				lock true
167				optional true
168				value [ 255 255 0 0 0 0 0 0  255 0 0 0 0 0 0 0  0 255 0 0 0 0 0 0 ]
169			}
170			{
171				# for compatibility with older drivers
172				name "EMU10K1 PCM Send Volume"
173				index { @func private_pcm_subdevice }
174				lock true
175				optional true
176				value [ 255 255 0 0 0 0 0 0  255 0 0 0 0 0 0 0  0 255 0 0 0 0 0 0 ]
177			}
178			{
179				interface PCM
180				name "EMU10K1 PCM Send Routing"
181				index { @func private_pcm_subdevice }
182				lock true
183				optional true
184				value [ 14 15 0 0 0 0 0 0  14 15 0 0 0 0 0 0  14 15 0 0 0 0 0 0 ]
185			}
186			{
187				# for compatibility with older drivers
188				name "EMU10K1 PCM Send Routing"
189				index { @func private_pcm_subdevice }
190				lock true
191				optional true
192				value [ 14 15 0 0 0 0 0 0  14 15 0 0 0 0 0 0  14 15 0 0 0 0 0 0 ]
193			}
194		]
195	}
196}
197
198<confdir:pcm/surround21.conf>
199<confdir:pcm/surround40.conf>
200<confdir:pcm/surround41.conf>
201<confdir:pcm/surround50.conf>
202
203Audigy2.pcm.surround40.0 {
204	@args [ CARD ]
205	@args.CARD {
206		type string
207	}
208	type multi
209	slaves [
210		{
211			pcm {
212				@func concat
213				strings [
214					"cards.Audigy2.pcm.front.0:CARD=" $CARD
215				]
216			}
217			channels 2
218		}
219		{
220			pcm {
221				@func concat
222				strings [
223					"cards.Audigy2.pcm.rear.0:CARD=" $CARD
224				]
225			}
226			channels 2
227		}
228	]
229	bindings [
230		{ slave 0 channel 0 }
231		{ slave 0 channel 1 }
232		{ slave 1 channel 0 }
233		{ slave 1 channel 1 }
234	]
235}
236
237<confdir:pcm/surround51.conf>
238
239Audigy2.pcm.surround51.0 {
240	@args [ CARD ]
241	@args.CARD {
242		type string
243	}
244	type multi
245	slaves [
246		{
247			pcm {
248				@func concat
249				strings [
250					"cards.Audigy2.pcm.front.0:CARD=" $CARD
251				]
252			}
253			channels 2
254		}
255		{
256			pcm {
257				@func concat
258				strings [
259					"cards.Audigy2.pcm.rear.0:CARD=" $CARD
260				]
261			}
262			channels 2
263		}
264		{
265			pcm {
266				@func concat
267				strings [
268					"cards.Audigy2.pcm.center_lfe.0:CARD=" $CARD
269				]
270			}
271			channels 2
272		}
273	]
274	bindings [
275		{ slave 0 channel 0 }
276		{ slave 0 channel 1 }
277		{ slave 1 channel 0 }
278		{ slave 1 channel 1 }
279		{ slave 2 channel 0 }
280		{ slave 2 channel 1 }
281	]
282}
283
284<confdir:pcm/surround71.conf>
285
286Audigy2.pcm.surround71.0 {
287	@args [ CARD ]
288	@args.CARD {
289		type string
290	}
291	type multi
292	slaves [
293		{
294			pcm {
295				@func concat
296				strings [
297					"cards.Audigy2.pcm.front.0:CARD=" $CARD
298				]
299			}
300			channels 2
301		}
302		{
303			pcm {
304				@func concat
305				strings [
306					"cards.Audigy2.pcm.rear.0:CARD=" $CARD
307				]
308			}
309			channels 2
310		}
311		{
312			pcm {
313				@func concat
314				strings [
315					"cards.Audigy2.pcm.center_lfe.0:CARD=" $CARD
316				]
317			}
318			channels 2
319		}
320		{
321			pcm {
322				@func concat
323				strings [
324					"cards.Audigy2.pcm.side.0:CARD=" $CARD
325				]
326			}
327			channels 2
328		}
329	]
330	bindings [
331		{ slave 0 channel 0 }
332		{ slave 0 channel 1 }
333		{ slave 1 channel 0 }
334		{ slave 1 channel 1 }
335		{ slave 2 channel 0 }
336		{ slave 2 channel 1 }
337		{ slave 3 channel 0 }
338		{ slave 3 channel 1 }
339	]
340}
341
342<confdir:pcm/iec958.conf>
343
344Audigy2.pcm.iec958.0 {
345	@args [ CARD AES0 AES1 AES2 AES3 ]
346	@args.CARD {
347		type string
348	}
349	@args.AES0 {
350		type integer
351	}
352	@args.AES1 {
353		type integer
354	}
355	@args.AES2 {
356		type integer
357	}
358	@args.AES3 {
359		type integer
360	}
361	type hooks
362	slave.pcm {
363		type hw
364		card $CARD
365	}
366
367	hooks.0 {
368		type ctl_elems
369		hook_args [
370			{
371				interface PCM
372				name "IEC958 Playback Default"
373				preserve true
374				optional true
375				value [ $AES0 $AES1 $AES2 $AES3 ]
376			}
377			{
378				# for compatibility with older drivers
379				name "IEC958 Playback Default"
380				preserve true
381				optional true
382				value [ $AES0 $AES1 $AES2 $AES3 ]
383			}
384			{
385				name "IEC958 Optical Raw Playback Switch"
386				lock true
387				preserve true
388				value [ 1 1 ]
389			}
390			{
391				interface PCM
392				name "EMU10K1 PCM Send Volume"
393				index { @func private_pcm_subdevice }
394				lock true
395				optional true
396				value [ 255 255 0 0 0 0 0 0  255 0 0 0 0 0 0 0  0 255 0 0 0 0 0 0 ]
397			}
398			{
399				# for compatibility with older drivers
400				name "EMU10K1 PCM Send Volume"
401				index { @func private_pcm_subdevice }
402				lock true
403				optional true
404				value [ 255 255 0 0 0 0 0 0  255 0 0 0 0 0 0 0  0 255 0 0 0 0 0 0 ]
405			}
406			{
407				interface PCM
408				name "EMU10K1 PCM Send Routing"
409				index { @func private_pcm_subdevice }
410				lock true
411				optional true
412				value [ 20 21 0 0 0 0 0 0  20 21 0 0 0 0 0 0   20 21 0 0 0 0 0 0 ]
413			}
414			{
415				# for compatibility with older drivers
416				name "EMU10K1 PCM Send Routing"
417				index { @func private_pcm_subdevice }
418				lock true
419				optional true
420				value [ 20 21 0 0 0 0 0 0  20 21 0 0 0 0 0 0   20 21 0 0 0 0 0 0 ]
421			}
422			{
423				name "Audigy Analog/Digital Output Jack"
424				lock true
425				preserve true
426				value 1
427			}
428		]
429	}
430}
431