From: Jaroslav Kysela Date: Sat, 25 Jun 2022 06:19:59 +0000 (+0200) Subject: common: ctl - remap.conf - switch Dst / Src use X-Git-Tag: v1.2.7.2~13 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a4e5aa359100bda8df1f6b786060fb91adf4e81c;p=alsa-ucm-conf.git common: ctl - remap.conf - switch Dst / Src use The Dst and Src macro arguments were improperly used. Switch them. BugLink: https://github.com/alsa-project/alsa-ucm-conf/issues/177 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/common/ctl/remap.conf b/ucm2/common/ctl/remap.conf index 9ee7cdf..e19568e 100644 --- a/ucm2/common/ctl/remap.conf +++ b/ucm2/common/ctl/remap.conf @@ -14,10 +14,10 @@ DefineMacro.CtlRemapMonoVolSw { LibraryConfig.pcm.SubstiConfig { ctl.default.map { - "name='${var:__Src} Volume'"."name='${var:__Dst} Volume'" { + "name='${var:__Dst} Volume'"."name='${var:__Src} Volume'" { vindex.0 "${evali:$__Index}" } - "name='${var:__Src} Switch'"."name='${var:__Dst} Switch'" { + "name='${var:__Dst} Switch'"."name='${var:__Src} Switch'" { vindex.0 "${evali:$__Index}" } } @@ -37,11 +37,11 @@ DefineMacro.CtlRemapMonoVolSw { DefineMacro.CtlRemapStereoVolSw { LibraryConfig.pcm.SubstiConfig { ctl.default.map { - "name='${var:__Src} Volume'"."name='${var:__Dst} Volume'" { + "name='${var:__Dst} Volume'"."name='${var:__Src} Volume'" { vindex.0 "${evali:$__Index0}" vindex.1 "${evali:$__Index1}" } - "name='${var:__Src} Switch'"."name='${var:__Dst} Switch'" { + "name='${var:__Dst} Switch'"."name='${var:__Src} Switch'" { vindex.0 "${evali:$__Index0}" vindex.1 "${evali:$__Index1}" }