[PATCH v3] ucm: add existence checks to geti calls

Jaroslav Kysela perex at perex.cz
Sun Jan 15 19:00:04 CET 2023


On 15. 01. 23 18:40, Jaroslav Kysela wrote:
> On 13. 01. 23 22:21, cujomalainey at chromium.org wrote:
>> From: Curtis Malainey <cujomalainey at 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/c083417b723a3485657234a21da3264419da1411

... and

https://github.com/alsa-project/alsa-lib/commit/496c4e031b49216c2fcda83c052cc243ba425a76

						Jaroslav

-- 
Jaroslav Kysela <perex at perex.cz>
Linux Sound Maintainer; ALSA Project; Red Hat, Inc.


More information about the Alsa-devel mailing list