[alsa-devel] [PATCH] - remove "front" , "surround" , "rear" , "surround40" , "surround51" from output of arecord -L
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) {
5290
Age (days ago)
5290
Last active (days ago)
0 comments
1 participants
participants (1)
-
Raymond Yau