From: Clemens Ladisch <clemens@ladisch.de>
To: Dan Hordern <dh.mailing.lists@gmail.com>, alsa-devel@alsa-project.org
Subject: Re: Get sound card available channels
Date: Thu, 25 Sep 2014 10:49:38 +0200 [thread overview]
Message-ID: <5423D722.6050305@ladisch.de> (raw)
In-Reply-To: <CA+BmFj2fTUFYKoWnae=pV7oraRPg1YkVTKyh=jqAM+A0fbz54Q@mail.gmail.com>
Dan Hordern wrote:
> We have a need for our process to poll/monitor the sound cards.
Something like libudev would help with monitoring /dev/snd/controlC*
devices.
> This process needs to provide a unique id for the sound card (e.g.
> some concat of name+hardware address) which we can get using snd_ctl_t
> handle.
snd_ctl_card_info_get_id()
> However, we also need to provide the number or rx/tx channels each sound
> card provides. Doing this using the pcm hw_params after snd_pcm_open won't
> work as the device may be in use.
>
> Is there a way for this process to get the number of rx/tx channels without
> needing to 'open' the device, e.g. using the snd_ctl_t handle?
No. The number of channels might depend on the current configuration
and on other resources.
What do you need these numbers for?
Regards,
Clemens
prev parent reply other threads:[~2014-09-25 8:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-25 0:39 Get sound card available channels Dan Hordern
2014-09-25 8:49 ` Clemens Ladisch [this message]
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=5423D722.6050305@ladisch.de \
--to=clemens@ladisch.de \
--cc=alsa-devel@alsa-project.org \
--cc=dh.mailing.lists@gmail.com \
/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.