]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
common: ctl - remap.conf - switch Dst / Src use
authorJaroslav Kysela <perex@perex.cz>
Sat, 25 Jun 2022 06:19:59 +0000 (08:19 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sat, 25 Jun 2022 06:20:26 +0000 (08:20 +0200)
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 <perex@perex.cz>
ucm2/common/ctl/remap.conf

index 9ee7cdf037375786e86564dd587ea26a6a751a5f..e19568e3095aa3c0492ff31dacc946d6dd2a9632 100644 (file)
 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}"
                        }