mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
ucm: rewrite device value only when the local config exists
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
e4aed044f9
commit
8e097fd14a
1 changed files with 2 additions and 0 deletions
|
|
@ -584,6 +584,8 @@ static int rewrite_device_value(snd_use_case_mgr_t *uc_mgr, const char *name, ch
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (!uc_mgr_has_local_config(uc_mgr))
|
||||||
|
return 0;
|
||||||
for (s = _prefix; *s && *value; s++) {
|
for (s = _prefix; *s && *value; s++) {
|
||||||
if (strcmp(*s, name) != 0)
|
if (strcmp(*s, name) != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue