From: Jaroslav Kysela Date: Thu, 15 Apr 2021 09:38:39 +0000 (+0200) Subject: ucm: rewrite device value only when the local config exists X-Git-Tag: v1.2.5~45 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=8e097fd14a5083e548193e6d42ae11952d72d227;p=alsa-lib.git ucm: rewrite device value only when the local config exists Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/main.c b/src/ucm/main.c index 04fffa81..72255d80 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -584,6 +584,8 @@ static int rewrite_device_value(snd_use_case_mgr_t *uc_mgr, const char *name, ch NULL }; + if (!uc_mgr_has_local_config(uc_mgr)) + return 0; for (s = _prefix; *s && *value; s++) { if (strcmp(*s, name) != 0) continue;