]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
usb_stream: ignore hint section in configuration
authorJaroslav Kysela <perex@perex.cz>
Tue, 23 Nov 2021 08:16:25 +0000 (09:16 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Nov 2021 08:16:28 +0000 (09:16 +0100)
Fixes: https://github.com/alsa-project/alsa-plugins/issues/40
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
usb_stream/pcm_usb_stream.c

index 33c93c5795542d1b7c760f8ba4eb16a8e2821fa2..02d2f43c085e4a475f05d28895d7a16b3658f03e 100644 (file)
@@ -474,7 +474,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(usb_stream)
                if (snd_config_get_id(n, &id) < 0)
                        continue;
 
-               if (strcmp(id, "comment") == 0 || strcmp(id, "type") == 0)
+               if (strcmp(id, "comment") == 0 || strcmp(id, "type") == 0 || strcmp(id, "hint") == 0)
                        continue;
                if (strcmp(id, "card") == 0) {
                        card = snd_config_get_card(n);