From: Anssi Hannula <anssi.hannula@iki.fi>
To: "alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>
Subject: Getting ELD and available chmaps without opening device?
Date: Wed, 30 Oct 2013 21:07:35 +0200 [thread overview]
Message-ID: <527158F7.6010204@iki.fi> (raw)
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
reply other threads:[~2013-10-30 19:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=527158F7.6010204@iki.fi \
--to=anssi.hannula@iki.fi \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).