From cabf841f4e98e62ec2cdc069f6cfbe4f896a3d92 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 13 Sep 2002 17:36:44 +0000 Subject: [PATCH] handle enumerated playback/capture routes. --- src/mixer/simple.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mixer/simple.c b/src/mixer/simple.c index 2164d29a..6babc608 100644 --- a/src/mixer/simple.c +++ b/src/mixer/simple.c @@ -872,6 +872,10 @@ static int simple_add1(snd_mixer_class_t *class, const char *name, case CTL_CAPTURE_ROUTE: { unsigned int n; + if (info.type == SND_CTL_ELEM_TYPE_ENUMERATED) { + type = CTL_ENUMLIST; + break; + } if (info.type != SND_CTL_ELEM_TYPE_BOOLEAN) return 0; n = sqrt((double)info.count); -- 2.47.1