]> git.alsa-project.org Git - alsa-lib.git/commitdiff
namehint: Fix hw device evaluation (missing last device)
authorJaroslav Kysela <perex@perex.cz>
Fri, 1 Oct 2010 11:31:45 +0000 (13:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 1 Oct 2010 11:31:45 +0000 (13:31 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/control/namehint.c

index e06d2407600455cb1199519e914028e6ab8499b5..ab3525eb622ee26f91cb80c394a8addc63fb8b1b 100644 (file)
@@ -446,7 +446,7 @@ static int add_card(struct hint_list *list, int card)
                                ok++;
                        }
                        ok = 0;
-                       for (device = 0; err >= 0 && device < max_device; device++) {
+                       for (device = 0; err >= 0 && device <= max_device; device++) {
                                list->device = device;
                                err = try_config(list, list->siface, str);
                                if (err < 0)