OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e097fd
)
ucm: fix uc_mgr_has_local_config()
author
Jaroslav Kysela
<perex@perex.cz>
Thu, 15 Apr 2021 09:49:32 +0000
(11:49 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Thu, 15 Apr 2021 09:49:32 +0000
(11:49 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/ucm_local.h
patch
|
blob
|
history
diff --git
a/src/ucm/ucm_local.h
b/src/ucm/ucm_local.h
index
0c3f21e
..
79f1e87
100644
(file)
--- a/
src/ucm/ucm_local.h
+++ b/
src/ucm/ucm_local.h
@@
-301,7
+301,8
@@
void uc_mgr_free(snd_use_case_mgr_t *uc_mgr);
static inline int uc_mgr_has_local_config(snd_use_case_mgr_t *uc_mgr)
{
- return uc_mgr && snd_config_iterator_first(uc_mgr->local_config);
+ return uc_mgr && snd_config_iterator_first(uc_mgr->local_config) !=
+ snd_config_iterator_end(uc_mgr->local_config);
}
int uc_mgr_card_open(snd_use_case_mgr_t *uc_mgr);