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:
4327660
)
topology: Use bool parser to parse boolean value
author
Amadeusz Sławiński
<amadeuszx.slawinski@linux.intel.com>
Fri, 17 Apr 2020 16:47:47 +0000
(12:47 -0400)
committer
Jaroslav Kysela
<perex@perex.cz>
Thu, 30 Apr 2020 12:21:29 +0000
(14:21 +0200)
It should be safe to change this as correct values with int would be 0
or 1 and bool parser handles them correctly.
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/topology/dapm.c
patch
|
blob
|
history
diff --git
a/src/topology/dapm.c
b/src/topology/dapm.c
index
7064512
..
cd1a877
100644
(file)
--- a/
src/topology/dapm.c
+++ b/
src/topology/dapm.c
@@
-595,7
+595,8
@@
int tplg_parse_dapm_widget(snd_tplg_t *tplg,
}
if (strcmp(id, "invert") == 0) {
- if (tplg_get_integer(n, &ival, 0))
+ ival = snd_config_get_bool(n);
+ if (ival < 0)
return -EINVAL;
widget->invert = ival;