15 Jan
2023
15 Jan
'23
6:40 p.m.
On 13. 01. 23 22:21, cujomalainey@chromium.org wrote:
From: Curtis Malainey cujomalainey@chromium.org
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.
Thanks. I applied your code and and pushed a cleanup + fix on top:
https://github.com/alsa-project/alsa-lib/commit/c083417b723a3485657234a21da3...
Jaroslav
--
Jaroslav Kysela perex@perex.cz
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.