mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-12 05:33:44 -04:00
conf: USB-Audio: allow custom definitions for "default" devices
Fixes: a9b1299556 ("USB-Audio.conf: fix definition for M-Audio AudioP...")
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
6c53557300
commit
c09e3b2d5b
1 changed files with 44 additions and 33 deletions
|
|
@ -67,7 +67,7 @@ USB-Audio.pcm.iec958_2_device {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# If a device requires non-standard definitions for front, surround40,
|
# If a device requires non-standard definitions for front, default, surround40,
|
||||||
# surround51, surround71 or iec958, they can be defined here.
|
# surround51, surround71 or iec958, they can be defined here.
|
||||||
|
|
||||||
# M-Audio AudioPhile USB:
|
# M-Audio AudioPhile USB:
|
||||||
|
|
@ -179,6 +179,16 @@ USB-Audio.pcm.front.0 {
|
||||||
USB-Audio.pcm.default {
|
USB-Audio.pcm.default {
|
||||||
@args [ CARD ]
|
@args [ CARD ]
|
||||||
@args.CARD { type string }
|
@args.CARD { type string }
|
||||||
|
@func refer
|
||||||
|
name {
|
||||||
|
@func concat
|
||||||
|
strings [
|
||||||
|
"cards.USB-Audio."
|
||||||
|
{ @func card_name card $CARD }
|
||||||
|
".pcm.default:CARD=" $CARD
|
||||||
|
]
|
||||||
|
}
|
||||||
|
default {
|
||||||
type asym
|
type asym
|
||||||
playback.pcm {
|
playback.pcm {
|
||||||
type plug
|
type plug
|
||||||
|
|
@ -211,6 +221,7 @@ USB-Audio.pcm.default {
|
||||||
strings [ "dsnoop:" $CARD ]
|
strings [ "dsnoop:" $CARD ]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
USB-Audio.pcm.default_playback_dmix_yes {
|
USB-Audio.pcm.default_playback_dmix_yes {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue