GNOME Bugzilla – Bug 565873
[alsa] Should use snd_device_name_hint() etc for enumerating the devices
Last modified: 2012-10-03 23:01:02 UTC
The alsa elements should use snd_device_name_hint() for enumerating the devices as the snd_card_* functions only list the kernel devices and no user space devices. http://0pointer.de/blog/projects/guide-to-sound-apis.html
Created attachment 125438 [details] [review] alsa-devices.diff This patch implements this for input and output PCM devices. For mixers I'm still using the old way of enumerating devices as I didn't find anything else for mixers. This now gives devices like "surround50:CARD=Intel,DEV=0" instead of "hw:0,0" but for the "device" property both are still working as before of course ;) Also with the patch I get a lot more devices than before.
Also I'm not 100% sure if the "new" device names really work for alsasrc, with GST_DEBUG=alsa*:5 it complains about not being able to open a mixer for it.
*** Bug 546638 has been marked as a duplicate of this bug. ***
Let's change this bug back to NEW so someone else takes a look at it ;)
Since bug 546638 was marked as a duplicate to this, I tried the patch suggested here. However, I don't get any difference in the list of selectable devices in gnome-sound-properties. gst-plugins-base is (otherwise) 0.10.21-3 gnome-control-center is 1:2.24.0.1-0ubuntu7.1
For me it made a difference. It'd still be nice if someone who knows more about ALSA than me could take a look at this patch :)
property probe interface is gone, added note to bug #678402.