PCM: Use compounds for overriding / enhancing chmaps

Instead of a single channel map, multiple channel maps can be provided
in a form of compound (array) to hw and null plugins.  In null
get_chmap, the channel map corresponding to the current channels is
copied from the given channel maps.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2012-09-12 17:13:22 +02:00
parent 5ba11d69da
commit ec7acfc408
7 changed files with 144 additions and 45 deletions

View file

@ -13,7 +13,7 @@ Audigy.pcm.front.0 {
slave.pcm {
type hw
card $CARD
chmap "FL,FR"
chmap [ "UNKNOWN" "FL,FR" ]
}
hooks.0 {
type ctl_elems
@ -66,7 +66,7 @@ Audigy.pcm.rear.0 {
slave.pcm {
type hw
card $CARD
chmap "RL,RR"
chmap [ "UNKNOWN" "RL,RR" ]
}
hooks.0 {
type ctl_elems
@ -102,7 +102,7 @@ Audigy.pcm.center_lfe.0 {
slave.pcm {
type hw
card $CARD
chmap "FC,LFE"
chmap [ "UNKNOWN" "FC,LFE" ]
}
hooks.0 {
type ctl_elems

View file

@ -13,7 +13,7 @@ Audigy2.pcm.front.0 {
slave.pcm {
type hw
card $CARD
chmap "FL,FR"
chmap [ "UNKNOWN" "FL,FR" ]
}
hooks.0 {
type ctl_elems
@ -66,7 +66,7 @@ Audigy2.pcm.rear.0 {
slave.pcm {
type hw
card $CARD
chmap "RL,RR"
chmap [ "UNKNOWN" "RL,RR" ]
}
hooks.0 {
type ctl_elems
@ -102,7 +102,7 @@ Audigy2.pcm.center_lfe.0 {
slave.pcm {
type hw
card $CARD
chmap "FC,LFE"
chmap [ "UNKNOWN" "FC,LFE" ]
}
hooks.0 {
type ctl_elems
@ -154,7 +154,7 @@ Audigy2.pcm.side.0 {
slave.pcm {
type hw
card $CARD
chmap "SL,SR"
chmap [ "UNKNOWN" "SL,SR" ]
}
hooks.0 {
type ctl_elems

View file

@ -15,7 +15,7 @@ EMU10K1.pcm.front.0 {
slave.pcm {
type hw
card $CARD
chmap "FL,FR"
chmap [ "UNKNOWN" "FL,FR" ]
}
hooks.0 {
type ctl_elems
@ -74,7 +74,7 @@ EMU10K1.pcm.rear.0 {
slave.pcm {
type hw
card $CARD
chmap "RL,RR"
chmap [ "UNKNOWN" "RL,RR" ]
}
hooks.0 {
type ctl_elems
@ -113,7 +113,7 @@ EMU10K1.pcm.center_lfe.0 {
slave.pcm {
type hw
card $CARD
chmap "FC,LFE"
chmap [ "UNKNOWN" "FC,LFE" ]
}
hooks.0 {
type ctl_elems