After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 565873 - [alsa] Should use snd_device_name_hint() etc for enumerating the devices
[alsa] Should use snd_device_name_hint() etc for enumerating the devices
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 546638 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-28 16:47 UTC by Sebastian Dröge (slomo)
Modified: 2012-10-03 23:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
alsa-devices.diff (2.90 KB, patch)
2008-12-28 17:38 UTC, Sebastian Dröge (slomo)
none Details | Review

Description Sebastian Dröge (slomo) 2008-12-28 16:47:34 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
Comment 1 Sebastian Dröge (slomo) 2008-12-28 17:38:58 UTC
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.
Comment 2 Sebastian Dröge (slomo) 2008-12-28 17:43:05 UTC
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.
Comment 3 Sebastian Dröge (slomo) 2009-01-23 07:14:40 UTC
*** Bug 546638 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Dröge (slomo) 2009-01-24 12:28:30 UTC
Let's change this bug back to NEW so someone else takes a look at it ;)
Comment 5 Martin Stjernholm 2009-01-25 14:41:27 UTC
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
Comment 6 Sebastian Dröge (slomo) 2009-07-30 13:15:58 UTC
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 :)
Comment 7 Tim-Philipp Müller 2012-10-03 23:01:02 UTC
property probe interface is gone, added note to bug #678402.