fix for classify microfones correctly (ie. not as 'jack' / Line in) 90/8990/1
authorJanos Kovacs <jankovac503@gmail.com>
Thu, 29 Aug 2013 15:22:51 +0000 (18:22 +0300)
committerJaska Uimonen <jaska.uimonen@helsinki.fi>
Thu, 29 Aug 2013 16:27:48 +0000 (19:27 +0300)
murphy/classify.c

index 8cca9c5..0c04249 100644 (file)
@@ -258,7 +258,9 @@ void pa_classify_guess_device_node_type_and_name(mir_node   *node,
         node->type = mir_hdmi;
         node->amname = (char *)desc;
     }
-    else if (node->direction == mir_input && strcasestr(name, "microphone")) {
+    else if (node->direction == mir_input &&
+             (strcasestr(name, "microphone") || strcasestr(desc, "microphone")))
+    {
         node->type = mir_microphone;
         node->amname = (char *)desc;
     }