All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about getting the name of devices
@ 2007-02-07 12:22 Julien Puydt
  0 siblings, 0 replies; only message in thread
From: Julien Puydt @ 2007-02-07 12:22 UTC (permalink / raw)
  To: alsa-devel

Hi,

I'm trying to patch the alsasrc&alsasink gstreamer plugins to be able to 
show nice names in user interfaces.

Given a card number, using snd_card_get_name gets me what I want easily. 
Unfortunately, that's not what I have available : I just have a 
snd_pcm_t*, opened on a char* which may look like "hw:1,0".

I know that I can snd_ctl_open a snd_ctl_t* with "hw:1", then get a 
snd_ctl_card_info_t*, on which I can call snd_ctl_card_info_get_card, to 
finally be able to call snd_card_get_name (sic).

The problem with this approach (well, apart from the fact that it is 
overly complex), is that snd_ctl_open fails if something like "hw:1,0" 
is given to it.

Is there a sane and simple way to obtain the name of a card from the 
data I have ?

JP

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-07 12:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-07 12:22 Question about getting the name of devices Julien Puydt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.