ALSA: look for the control file rather than pcm files

This commit is contained in:
Andrew Kelley 2015-08-27 21:22:30 -07:00
parent 5ce24c5382
commit 2d8f8e7f31

View file

@ -794,10 +794,7 @@ static void device_thread_run(void *arg) {
continue; continue;
if (!event->len || event->len < 8) if (!event->len || event->len < 8)
continue; continue;
if (event->name[0] != 'p' || if (strncmp(event->name, "controlC", 8) != 0) {
event->name[1] != 'c' ||
event->name[2] != 'm')
{
continue; continue;
} }
if (event->mask & IN_CREATE) { if (event->mask & IN_CREATE) {