From: Jaroslav Kysela Date: Tue, 3 Nov 2009 15:38:30 +0000 (+0100) Subject: namehint: Allow snd_device_name_hint to search for CTL devices. X-Git-Tag: v1.0.22~12 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=0fcac217566267f6a06db77610ade465cd6d6426;p=alsa-lib.git namehint: Allow snd_device_name_hint to search for CTL devices. Signed-off-by: John Lindgren Signed-off-by: Jaroslav Kysela --- diff --git a/src/control/namehint.c b/src/control/namehint.c index 1d3f4be9..a44e81b1 100644 --- a/src/control/namehint.c +++ b/src/control/namehint.c @@ -536,6 +536,8 @@ int snd_device_name_hint(int card, const char *iface, void ***hints) list.iface = SND_CTL_ELEM_IFACE_SEQUENCER; else if (strcmp(iface, "hwdep") == 0) list.iface = SND_CTL_ELEM_IFACE_HWDEP; + else if (strcmp(iface, "ctl") == 0) + list.iface = SND_CTL_ELEM_IFACE_MIXER; else return -EINVAL; list.show_all = 0;