mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
topology: use snd_config_get_bool() instead own implementation
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
f373bf1f6e
commit
5925a6d870
4 changed files with 34 additions and 28 deletions
|
|
@ -657,13 +657,10 @@ int tplg_parse_control_mixer(snd_tplg_t *tplg,
|
|||
}
|
||||
|
||||
if (strcmp(id, "invert") == 0) {
|
||||
if (snd_config_get_string(n, &val) < 0)
|
||||
ival = snd_config_get_bool(n);
|
||||
if (ival < 0)
|
||||
return -EINVAL;
|
||||
|
||||
if (strcmp(val, "true") == 0)
|
||||
mc->invert = 1;
|
||||
else if (strcmp(val, "false") == 0)
|
||||
mc->invert = 0;
|
||||
mc->invert = ival;
|
||||
|
||||
tplg_dbg("\t%s: %d\n", id, mc->invert);
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue