mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04: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
|
||||
};
|
||||
|
||||
if (!uc_mgr_has_local_config(uc_mgr))
|
||||
return 0;
|
||||
for (s = _prefix; *s && *value; s++) {
|
||||
if (strcmp(*s, name) != 0)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue