mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
ucm: fix parser for sequences and fix wrong strcmp
The sequences are not parsed correctly. First cfg value is the command and second value is the command argument. Also, fix strcmp calls in ucm/main.c (reported by abraham duenas <aduejazz@gmail.com>). Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
9b6df1cf64
commit
cdc9dd50bf
3 changed files with 17 additions and 6 deletions
|
|
@ -774,9 +774,9 @@ int snd_use_case_get_list(snd_use_case_mgr_t *uc_mgr,
|
|||
pthread_mutex_lock(&uc_mgr->mutex);
|
||||
if (strcmp(identifier, "_verbs") == 0)
|
||||
err = get_verb_list(uc_mgr, list);
|
||||
else if (strcmp(identifier, "_enadevs"))
|
||||
else if (strcmp(identifier, "_enadevs") == 0)
|
||||
err = get_enabled_device_list(uc_mgr, list);
|
||||
else if (strcmp(identifier, "_enamods"))
|
||||
else if (strcmp(identifier, "_enamods") == 0)
|
||||
err = get_enabled_modifier_list(uc_mgr, list);
|
||||
else {
|
||||
str1 = strchr(identifier, '/');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue