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;
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) {