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 627203 - [alsa] alsasrc and alsasink should expose card name via property
[alsa] alsasrc and alsasink should expose card name via property
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
0.10.30
Other Linux
: Normal normal
: 0.10.31
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-08-17 19:11 UTC by Adam Dingle
Modified: 2010-08-18 14:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Adam Dingle 2010-08-17 19:11:02 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.
Comment 1 Wim Taymans 2010-08-18 14:46:38 UTC
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.