alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* Getting ELD and available chmaps without opening device?
@ 2013-10-30 19:07 Anssi Hannula
  0 siblings, 0 replies; only message in thread
From: Anssi Hannula @ 2013-10-30 19:07 UTC (permalink / raw)
  To: alsa-devel@alsa-project.org

Hi all,

I want to read the ELD of a HDMI sink while another playback is ongoing.

I have the device name (e.g. "hdmi:CARD=NVidia,DEV=0"), and normally I'd
open the device, use snd_pcm_info() to get snd_pcm_info_t with which I
can use snd_pcm_info_get_card() and snd_pcm_info_get_device() to get the
necessary information to access the control with snd_ctl_open(),
snd_hctl_open_ctl() etc.

However, since another playback is ongoing I can't open the device. Is
there another way I'm missing, or do I simply have to magically know the
card/device numbers (which in my case is possible with some tricks since
the playback is in the same application, but I'd guess that might not
always be the case)?

Same affects available chmaps from what I can see.

-- 
Anssi Hannula

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

only message in thread, other threads:[~2013-10-30 19:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-30 19:07 Getting ELD and available chmaps without opening device? Anssi Hannula

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).