ucm: rewrite device value only when the local config exists

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-04-15 11:38:39 +02:00
parent e4aed044f9
commit 8e097fd14a

View file

@ -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;