All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Randell Jesup <randell1@jesup.org>
Cc: alsa-devel@alsa-project.org
Subject: Re: Use of _hint() functions and older machines
Date: Mon, 24 Oct 2011 12:26:58 +0200	[thread overview]
Message-ID: <4EA53D72.3060009@ladisch.de> (raw)
In-Reply-To: <4EA4F573.9060704@jesup.org>

Randell Jesup wrote:
> On 10/23/2011 6:36 AM, Clemens Ladisch wrote:
> > The best way to get a list of devices would have been to enumerate sound
> > cards with snd_card_next(), then use device names "default:CARD=x".
> > However, this gets only the primary device of each card, there might be
> > sound cards without a PCM device, devices not based on an ALSA kernel
> > driver aren't listed, and the "default:CARD=x" mechanism doesn't work if
> > the user has redefined the "default" device.
> 
> Ugh.  So, there's no reasonable way to get a user-understandable list
> before .14?  How useful was snd_ctl_card_info_get_name()?

That gives you the card name, which is not the same as the name of the
PCM device (although it shouldn't matter when the card has only one
PCM device).

> And I guess I'd need to enumerate the 'devices' and 'subdevices' on
> each card as well...

Yes, but subdevices are typically used for multiple streams that are
mixed together, so you can ignore them.


Regards,
Clemens

      parent reply	other threads:[~2011-10-24 10:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-21  3:28 Use of _hint() functions and older machines Randell Jesup
2011-10-22 18:04 ` Colin Guthrie
2011-10-23  7:46   ` Randell Jesup
2011-10-23 10:36 ` Clemens Ladisch
2011-10-24  5:19   ` Randell Jesup
2011-10-24  7:00     ` Raymond Yau
2011-10-24 10:26     ` 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=4EA53D72.3060009@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=randell1@jesup.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.