29 Jun
2010
29 Jun
'10
6:05 a.m.
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) {