From 0fcac217566267f6a06db77610ade465cd6d6426 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 3 Nov 2009 16:38:30 +0100 Subject: [PATCH] namehint: Allow snd_device_name_hint to search for CTL devices. Signed-off-by: John Lindgren Signed-off-by: Jaroslav Kysela --- src/control/namehint.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.1