ALSA: control: Introduce snd_ctl_find_id_mixer()
authorTakashi Iwai <tiwai@suse.de>
Thu, 20 Jul 2023 08:20:58 +0000 (10:20 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Jul 2023 07:10:38 +0000 (09:10 +0200)
commit68fa05d4a82b8f4ca6fa85be85833e35bd6ebef9
tree341a6294a583280f2bc05c2a56aff73192996519
parentf056f2fef31e5662e3f995fc23ae0eea27db5a01
ALSA: control: Introduce snd_ctl_find_id_mixer()

A commonly seen pattern is to run snd_ctl_find_id() for a mixer
control element with a given string.  Let's provide a standard helper
for achieving that for simplifying the code.

Link: https://lore.kernel.org/r/20230720082108.31346-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/control.h