]> git.alsa-project.org Git - alsa-utils.git/commit
alsactl: fix the check for additional elements
authorJaroslav Kysela <perex@perex.cz>
Fri, 3 Dec 2021 10:09:54 +0000 (11:09 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 3 Dec 2021 10:09:57 +0000 (11:09 +0100)
commit257f3063fa623e1bb17097637ff1e447dd0f4ca0
tree30a21aabaaefa14010faa48d462310a9a1e9aaa5
parent3b1b6863e7720d870ee34412e08b563605246718
alsactl: fix the check for additional elements

The driver may export only write-only elements. The previous
heuristics code do not handle this use case correctly.
Iterate through all elements and skip the write-only ones.

Fixes: https://github.com/alsa-project/alsa-utils/issues/122
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/state.c