From: Paul <paul@redpineinstruments.org>
To: alsa-devel@alsa-project.org
Subject: snd_ctl_elem_list
Date: Mon, 15 Oct 2012 01:09:40 -0400 [thread overview]
Message-ID: <507B9A94.4020200@redpineinstruments.org> (raw)
Newbie. Trying to discover information about the audio hardware.
Specifically about a USB microphone ( Audio-Technia AT2020USB ) and
whether it has a volume control. Writing in Ada just to be difficult.
Not having any problems with that though.
After doing a malloc and a snd_ctl_elem_list I can use
ctl_elem_list_count to get the number of elements. This number is
non-zero ( 2 for the AT2020, 34 for the on-board Intel audio chip ).
Then I can use ctl_elem_to get the number of used. That number is zero
and prevents me from trying to access the element list.
How can I find out information about the elements in the list? How do
these elements become used? Is this even the correct path to try to
discover the volume control?
Thanks,
Paul I
reply other threads:[~2012-10-15 5:09 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=507B9A94.4020200@redpineinstruments.org \
--to=paul@redpineinstruments.org \
--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 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.