Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/alsa/cards/USB-Audio.conf @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 68:5028fdace37b |
---|---|
1 # | |
2 # USB-Audio.conf - configuration for USB Audio devices | |
3 # | |
4 # | |
5 # DO NO EDIT; this is an internal ALSA file. | |
6 # If you want to add your own definitions, put them into /etc/asound.conf or | |
7 # ~/.asoundrc, with "cards." before the "USB-Audio", e.g.: | |
8 # | |
9 # cards.USB-Audio.pcm.use_dmix."NoiseBlaster 3000" no | |
10 # | |
11 # If your device requires such a definition to work correctly, please report it | |
12 # to <alsa-devel@alsa-project.org>. | |
13 | |
14 | |
15 # If a device has sample formats not supported by dmix, dmix can be disabled | |
16 # here. | |
17 USB-Audio.pcm.use_dmix { | |
18 "AudioPhile" no # uses big-endian 24-bit samples | |
19 "Audiophile USB (tm)" no | |
20 } | |
21 | |
22 # If a device does not have a four-channel mode for the front/rear outputs, | |
23 # other modes can be selected here. | |
24 # six_channels - for devices that route the last two of the four channels | |
25 # to the center/LFE outputs | |
26 # two_stereo_devices - for devices that have two stereo audio interfaces | |
27 USB-Audio.pcm.surround40_type { | |
28 "AudioPhile" two_stereo_devices | |
29 "Audiophile USB (tm)" two_stereo_devices | |
30 "OmniStudio" two_stereo_devices | |
31 "Quattro" two_stereo_devices | |
32 "SB Audigy 2 NX" six_channels | |
33 "USB AudioSport Quattro (tm)" two_stereo_devices | |
34 } | |
35 | |
36 # If a device does not use the first PCM device for digital data, the device | |
37 # number for the iec958 device can be changed here. | |
38 USB-Audio.pcm.iec958_device { | |
39 # "NoiseBlaster 3000" 42 | |
40 "USB Sound Blaster HD" 1 | |
41 "Xonar U7" 1 | |
42 "ASUS XONAR U5" 1 | |
43 "XONAR U5" 1 | |
44 "XONAR SOUND CARD" 1 | |
45 | |
46 # The below don't have digital in/out, so prevent them from being opened. | |
47 "Andrea PureAudio USB-SA Headset" 999 | |
48 "Blue Snowball" 999 | |
49 "C-Media USB Headphone Set" 999 | |
50 "HP Digital Stereo Headset" 999 | |
51 "GN 9330" 999 | |
52 "Logitech Speaker Lapdesk N700" 999 | |
53 "Logitech G35 Headset" 999 | |
54 "Logitech USB Headset" 999 | |
55 "Logitech USB Headset H540" 999 | |
56 "Logitech Wireless Headset" 999 | |
57 "Plantronics GameCom 780" 999 | |
58 "Plantronics USB Headset" 999 | |
59 "Plantronics Wireless Audio" 999 | |
60 "SB WoW Headset" 999 | |
61 "Scarlett 2i2 USB" 999 | |
62 "Scarlett 2i4 USB" 999 | |
63 "Sennheiser USB headset" 999 | |
64 "SWTOR Gaming Headset by Razer" 999 | |
65 "Thunderbolt Dock Audio Headset" 999 | |
66 "Thunderbolt Dock Audio Module" 999 | |
67 "USB Device 0x46d_0x821" 999 | |
68 "USB Device 0x46d_0x992" 999 | |
69 "WD15 Dock" 999 | |
70 "WD19 Dock" 999 | |
71 } | |
72 | |
73 # Second iec958 device number, if any. | |
74 USB-Audio.pcm.iec958_2_device { | |
75 "PHIREE U2" 1 # 0 = PCM S/PDIF, 1 = non-PCM S/PDIF | |
76 "PHIREE U2SX" 1 # 0 = PCM S/PDIF, 1 = non-PCM S/PDIF | |
77 } | |
78 | |
79 | |
80 # If a device requires non-standard definitions for front, default, surround40, | |
81 # surround51, surround71 or iec958, they can be defined here. | |
82 | |
83 # M-Audio AudioPhile USB: | |
84 # device 0: analog output, digital input | |
85 # device 1: digital output, analog input | |
86 USB-Audio."AudioPhile".pcm.default "cards.USB-Audio.Audiophile USB (tm).pcm.default" | |
87 USB-Audio."Audiophile USB (tm)".pcm.default { | |
88 @args [ CARD ] | |
89 @args.CARD { type string } | |
90 type asym | |
91 playback.pcm { | |
92 type plug | |
93 slave.pcm { | |
94 type hw | |
95 card $CARD | |
96 device 0 | |
97 } | |
98 } | |
99 capture.pcm { | |
100 type plug | |
101 slave.pcm { | |
102 @func concat | |
103 strings [ "dsnoop:DEV=1,CARD=" $CARD ] | |
104 } | |
105 } | |
106 } | |
107 USB-Audio."AudioPhile".pcm.iec958 "cards.USB-Audio.Audiophile USB (tm).pcm.iec958" | |
108 USB-Audio."Audiophile USB (tm)".pcm.iec958 { | |
109 @args [ CARD AES0 AES1 AES2 AES3 ] | |
110 @args.CARD { type string } | |
111 @args.AES0 { type integer } | |
112 @args.AES1 { type integer } | |
113 @args.AES2 { type integer } | |
114 @args.AES3 { type integer } | |
115 type asym | |
116 playback.pcm { | |
117 type hw | |
118 card $CARD | |
119 device 1 | |
120 } | |
121 capture.pcm { | |
122 type hw | |
123 card $CARD | |
124 device 0 | |
125 } | |
126 } | |
127 | |
128 # For this card we can (and must to get IEC61937) set AES bits | |
129 USB-Audio."MicroII".pcm.iec958 "cards.USB-Audio.Audio Advantage MicroII.pcm.iec958" | |
130 USB-Audio."Audio Advantage MicroII".pcm.iec958 { | |
131 @args [ CARD AES0 AES1 AES2 AES3 ] | |
132 @args.CARD { type string } | |
133 @args.AES0 { type integer } | |
134 @args.AES1 { type integer } | |
135 @args.AES2 { type integer } | |
136 @args.AES3 { type integer } | |
137 | |
138 type hooks | |
139 slave.pcm { | |
140 type hw | |
141 card $CARD | |
142 } | |
143 | |
144 hooks.0 { | |
145 type ctl_elems | |
146 hook_args [ | |
147 { | |
148 interface PCM | |
149 name "IEC958 Playback Default" | |
150 preserve true | |
151 optional true | |
152 value [ $AES0 $AES1 $AES2 $AES3 ] | |
153 } | |
154 { | |
155 name "IEC958 Playback Switch" | |
156 lock true | |
157 preserve true | |
158 value 1 | |
159 } | |
160 ] | |
161 } | |
162 } | |
163 | |
164 ################################################################################ | |
165 | |
166 <confdir:pcm/front.conf> | |
167 | |
168 USB-Audio.pcm.front.0 { | |
169 @args [ CARD ] | |
170 @args.CARD { type string } | |
171 @func refer | |
172 name { | |
173 @func concat | |
174 strings [ | |
175 "cards.USB-Audio." | |
176 { @func card_name card $CARD } | |
177 ".pcm.front:CARD=" $CARD | |
178 ] | |
179 } | |
180 default { | |
181 # We could use softvol, but the driver might have guessed a | |
182 # wrong name for the real volume control. | |
183 type hw | |
184 card $CARD | |
185 device 0 | |
186 } | |
187 } | |
188 | |
189 USB-Audio.pcm.default { | |
190 @args [ CARD ] | |
191 @args.CARD { type string } | |
192 @func refer | |
193 name { | |
194 @func concat | |
195 strings [ | |
196 "cards.USB-Audio." | |
197 { @func card_name card $CARD } | |
198 ".pcm.default:CARD=" $CARD | |
199 ] | |
200 } | |
201 default { | |
202 type asym | |
203 playback.pcm { | |
204 type plug | |
205 slave.pcm { | |
206 @func refer | |
207 name { | |
208 @func concat | |
209 strings [ | |
210 "cards.USB-Audio.pcm.default_playback_dmix_" | |
211 { | |
212 @func refer | |
213 name { | |
214 @func concat | |
215 strings [ | |
216 "cards.USB-Audio.pcm.use_dmix." | |
217 { @func card_name card $CARD } | |
218 ] | |
219 } | |
220 default yes | |
221 } | |
222 ":CARD=" $CARD | |
223 ] | |
224 } | |
225 } | |
226 } | |
227 capture.pcm { | |
228 type plug | |
229 slave.pcm { | |
230 @func concat | |
231 strings [ "dsnoop:" $CARD ] | |
232 } | |
233 } | |
234 } | |
235 } | |
236 | |
237 USB-Audio.pcm.default_playback_dmix_yes { | |
238 @args [ CARD ] | |
239 @args.CARD { type string } | |
240 @func concat | |
241 strings [ "dmix:" $CARD ] | |
242 } | |
243 | |
244 USB-Audio.pcm.default_playback_dmix_no { | |
245 @args [ CARD ] | |
246 @args.CARD { type string } | |
247 type hw | |
248 card $CARD | |
249 device 0 | |
250 } | |
251 | |
252 <confdir:pcm/surround40.conf> | |
253 | |
254 USB-Audio.pcm.surround40.0 { | |
255 @args [ CARD ] | |
256 @args.CARD { type string } | |
257 @func refer | |
258 name { | |
259 @func concat | |
260 strings [ | |
261 "cards.USB-Audio." | |
262 { @func card_name card $CARD } | |
263 ".pcm.surround40:CARD=" $CARD | |
264 ] | |
265 } | |
266 default { | |
267 @func refer | |
268 name { | |
269 @func concat | |
270 strings [ | |
271 "cards.USB-Audio.pcm.surround40_" | |
272 { | |
273 @func refer | |
274 name { | |
275 @func concat | |
276 strings [ | |
277 "cards.USB-Audio.pcm.surround40_type." | |
278 { @func card_name card $CARD } | |
279 ] | |
280 } | |
281 default default | |
282 } | |
283 ":CARD=" $CARD | |
284 ] | |
285 } | |
286 } | |
287 } | |
288 | |
289 USB-Audio.pcm.surround40_default { | |
290 @args [ CARD ] | |
291 @args.CARD { type string } | |
292 type hw | |
293 card $CARD | |
294 device 0 | |
295 } | |
296 | |
297 USB-Audio.pcm.surround40_six_channels { | |
298 @args [ CARD ] | |
299 @args.CARD { type string } | |
300 type route | |
301 ttable.0.0 1 | |
302 ttable.1.1 1 | |
303 ttable.2.4 1 | |
304 ttable.3.5 1 | |
305 slave { | |
306 pcm { | |
307 type hw | |
308 card $CARD | |
309 device 0 | |
310 } | |
311 channels 6 | |
312 } | |
313 } | |
314 | |
315 USB-Audio.pcm.surround40_two_stereo_devices { | |
316 @args [ CARD ] | |
317 @args.CARD { type string } | |
318 type route | |
319 ttable.0.0 1 | |
320 ttable.1.1 1 | |
321 ttable.2.2 1 | |
322 ttable.3.3 1 | |
323 slave.pcm { | |
324 type multi | |
325 slaves { | |
326 a { | |
327 pcm { | |
328 type hw | |
329 card $CARD | |
330 device 0 | |
331 } | |
332 channels 2 | |
333 } | |
334 b { | |
335 pcm { | |
336 type hw | |
337 card $CARD | |
338 device 1 | |
339 } | |
340 channels 2 | |
341 } | |
342 } | |
343 bindings [ | |
344 { slave a channel 0 } | |
345 { slave a channel 1 } | |
346 { slave b channel 0 } | |
347 { slave b channel 1 } | |
348 ] | |
349 } | |
350 } | |
351 | |
352 <confdir:pcm/surround21.conf> | |
353 <confdir:pcm/surround41.conf> | |
354 <confdir:pcm/surround50.conf> | |
355 <confdir:pcm/surround51.conf> | |
356 | |
357 USB-Audio.pcm.surround51.0 { | |
358 @args [ CARD ] | |
359 @args.CARD { type string } | |
360 @func refer | |
361 name { | |
362 @func concat | |
363 strings [ | |
364 "cards.USB-Audio." | |
365 { @func card_name card $CARD } | |
366 ".pcm.surround51:CARD=" $CARD | |
367 ] | |
368 } | |
369 default { | |
370 type route | |
371 ttable.0.0 1 | |
372 ttable.1.1 1 | |
373 ttable.2.4 1 | |
374 ttable.3.5 1 | |
375 ttable.4.2 1 | |
376 ttable.5.3 1 | |
377 slave { | |
378 pcm { | |
379 type hw | |
380 card $CARD | |
381 device 0 | |
382 } | |
383 channels 6 | |
384 } | |
385 } | |
386 } | |
387 | |
388 <confdir:pcm/surround71.conf> | |
389 | |
390 USB-Audio.pcm.surround71.0 { | |
391 @args [ CARD ] | |
392 @args.CARD { type string } | |
393 @func refer | |
394 name { | |
395 @func concat | |
396 strings [ | |
397 "cards.USB-Audio." | |
398 { @func card_name card $CARD } | |
399 ".pcm.surround71:CARD=" $CARD | |
400 ] | |
401 } | |
402 default { | |
403 type route | |
404 ttable.0.0 1 | |
405 ttable.1.1 1 | |
406 ttable.2.4 1 | |
407 ttable.3.5 1 | |
408 ttable.4.2 1 | |
409 ttable.5.3 1 | |
410 ttable.6.6 1 | |
411 ttable.7.7 1 | |
412 slave { | |
413 pcm { | |
414 type hw | |
415 card $CARD | |
416 device 0 | |
417 } | |
418 channels 8 | |
419 } | |
420 } | |
421 } | |
422 | |
423 <confdir:pcm/iec958.conf> | |
424 | |
425 USB-Audio.pcm.iec958.0 { | |
426 @args [ CARD AES0 AES1 AES2 AES3 ] | |
427 @args.CARD { type string } | |
428 @args.AES0 { type integer } | |
429 @args.AES1 { type integer } | |
430 @args.AES2 { type integer } | |
431 @args.AES3 { type integer } | |
432 @func refer | |
433 name { | |
434 @func concat | |
435 strings [ | |
436 "cards.USB-Audio." | |
437 { @func card_name card $CARD } | |
438 ".pcm.iec958:CARD=" $CARD | |
439 ",AES0=" $AES0 ",AES1=" $AES1 ",AES2=" $AES2 ",AES3=" $AES3 | |
440 ] | |
441 } | |
442 default { | |
443 # FIXME: we cannot set the AES parameters | |
444 type hw | |
445 card $CARD | |
446 device { | |
447 @func refer | |
448 name { | |
449 @func concat | |
450 strings [ | |
451 "cards.USB-Audio.pcm.iec958_device." | |
452 { @func card_name card $CARD } | |
453 ] | |
454 } | |
455 default 0 | |
456 } | |
457 } | |
458 } | |
459 | |
460 USB-Audio.pcm.iec958.1 { | |
461 @args [ CARD AES0 AES1 AES2 AES3 ] | |
462 @args.CARD { type string } | |
463 @args.AES0 { type integer } | |
464 @args.AES1 { type integer } | |
465 @args.AES2 { type integer } | |
466 @args.AES3 { type integer } | |
467 @func refer | |
468 name { | |
469 @func concat | |
470 strings [ | |
471 "cards.USB-Audio." | |
472 { @func card_name card $CARD } | |
473 ".pcm.iec958_2:CARD=" $CARD | |
474 ",AES0=" $AES0 ",AES1=" $AES1 ",AES2=" $AES2 ",AES3=" $AES3 | |
475 ] | |
476 } | |
477 default { | |
478 # FIXME: we cannot set the AES parameters | |
479 type hw | |
480 card $CARD | |
481 device { | |
482 @func refer | |
483 name { | |
484 @func concat | |
485 strings [ | |
486 "cards.USB-Audio.pcm.iec958_2_device." | |
487 { @func card_name card $CARD } | |
488 ] | |
489 } | |
490 default 999 | |
491 } | |
492 } | |
493 } | |
494 | |
495 # vim: ft=alsaconf |