GNOME Bugzilla – Bug 627203
[alsa] alsasrc and alsasink should expose card name via property
Last modified: 2010-08-18 14:46:38 UTC
Today, the alsasrc and alsasink elements have a property "device-name" which reveals the ALSA device name (which ultimately comes from the ALSA function snd_pcm_info_get_name). They should have an additional property "card-name" exposing the ALSA card name (from snd_ctl_card_info_get_name). For example, on my machine the device name for hw:1,0 is "USB Audio", which is currently visible via GStreamer. The card name is "FastTrack Pro"; I'd like to be able to get this string too. This would be useful for GStreamer applications which want to present descriptive ALSA device names to the user.
commit 7b310c6a03f057c306f43f249a22c57c18baba95 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Wed Aug 18 16:45:37 2010 +0200 alsasrc/sink: add property to get the card name fixes #627203 commit 693919ff8757e3c99c00e1136936ef3bf65c8b23 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Wed Aug 18 16:42:13 2010 +0200 alsa: add method to retrieve the card name Reuse an existing method to retrieve the card name.