From 2d8f8e7f311629745cf47fc6d6bb96f2cfe85e4c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 27 Aug 2015 21:22:30 -0700 Subject: [PATCH] ALSA: look for the control file rather than pcm files --- src/alsa.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/alsa.cpp b/src/alsa.cpp index e328347..e529885 100644 --- a/src/alsa.cpp +++ b/src/alsa.cpp @@ -794,10 +794,7 @@ static void device_thread_run(void *arg) { continue; if (!event->len || event->len < 8) continue; - if (event->name[0] != 'p' || - event->name[1] != 'c' || - event->name[2] != 'm') - { + if (strncmp(event->name, "controlC", 8) != 0) { continue; } if (event->mask & IN_CREATE) {