On 13. 01. 23 22:21, cujomalainey@xxxxxxxxxxxx wrote:
From: Curtis Malainey <cujomalainey@xxxxxxxxxxxx> 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/c083417b723a3485657234a21da3264419da1411 Jaroslav -- Jaroslav Kysela <perex@xxxxxxxx> Linux Sound Maintainer; ALSA Project; Red Hat, Inc.