]> git.alsa-project.org Git - alsa-lib.git/commit
ucm: add existence checks to geti calls
authorCurtis Malainey <cujomalainey@chromium.org>
Fri, 13 Jan 2023 21:21:55 +0000 (13:21 -0800)
committerJaroslav Kysela <perex@perex.cz>
Sun, 15 Jan 2023 16:57:13 +0000 (17:57 +0100)
commit436cd5b6d01edf7aedd58c209dc0d3b9adb111c6
treeb4b0c82cc0b8375b85d0e41796b5a4b3f1f42a06
parentd25ddafaa752666e14471230c1e01389e0440579
ucm: add existence checks to geti calls

Right now in snd_use_case_geti you cannot tell if the item being queried
exists or not when being checked. This also means the only way to check
for the existence of something in the client of the library is to
iterate over the list of mods/devs even if we know exactly the name we
are looking for. We have functions that do exactly this internally so
lets return this information in a logical fashion through geti.

Also clean up some trailing white space nearby.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/main.c