]> git.alsa-project.org Git - alsa-lib.git/commitdiff
handle enumerated playback/capture routes.
authorTakashi Iwai <tiwai@suse.de>
Fri, 13 Sep 2002 17:36:44 +0000 (17:36 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 13 Sep 2002 17:36:44 +0000 (17:36 +0000)
src/mixer/simple.c

index 2164d29abece680fd439f5054c42fb349e0368ae..6babc6088c2e09a35480c9fbc17ffee0c5c1b345 100644 (file)
@@ -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);