[PATCH] - remove "front" , "surround" , "rear" , "surround40" , "surround51" from output of arecord -L

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since arecord -L will list "front", .....  devices which are not suitable
for recording (e.g. HDA has softvol plugin in front device , emu10k1 and
other drivers has hook ctl and lock )




    while (*n != NULL) {
        name = snd_device_name_get_hint(*n, "NAME");
        descr = snd_device_name_get_hint(*n, "DESC");
        io = snd_device_name_get_hint(*n, "IOID");
+        if ( stream == SND_PCM_STREAM_CAPTURE )
+               if (( strstr(descr,"speaker") > 0 ) || (
strstr(descr,"Output") > 0 ))
+                        goto __end;
        if (io != NULL && strcmp(io, filter) != 0)
            goto __end;
        printf("%s\n", name);
        if ((descr1 = descr) != NULL) {
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux