From: Takashi Iwai Date: Fri, 13 Sep 2002 17:36:44 +0000 (+0000) Subject: handle enumerated playback/capture routes. X-Git-Tag: v1.0.3~387 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=cabf841f4e98e62ec2cdc069f6cfbe4f896a3d92;p=alsa-lib.git handle enumerated playback/capture routes. --- 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);