All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: sylvain.bertrand@gmail.com
Cc: alsa-devel@alsa-project.org
Subject: Re: right way to enumerate pcm devices
Date: Tue, 12 Feb 2019 14:36:00 +0100	[thread overview]
Message-ID: <s5hr2cd3z9b.wl-tiwai@suse.de> (raw)
In-Reply-To: <20190212123333.GB6441@freedom>

On Tue, 12 Feb 2019 13:33:33 +0100,
sylvain.bertrand@gmail.com wrote:
> 
> Hi,
> 
> I got some code based on hints which, unfortunately, seems not sufficient.
> 
> I can list the hardware cards, but what is the proper way to enumerate the pcm devices?

Parsing the hints is the right way.

> For instance, I don't get basic user defined pcm devices, I get all the
> surround pcm devices for the USB mic from my webcam etc...

The entries without hints are filtered out as default.
i.e. a user-defined entry appears, too, if it contains the hints.

You can change the behavior by setting defaults.namehint.showall,
too.


HTH,

Takashi

> The real question: how I build a clean list of pcm devices I would present to a
> user to choose from without confusing him/her?
> 
> Wherever I look I get only this hint based code. I presume I am looking the
> wrong way.
> 
> regards,
> 
> -- 
> Sylvain
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
> 

  reply	other threads:[~2019-02-12 13:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-12 12:33 right way to enumerate pcm devices sylvain.bertrand
2019-02-12 13:36 ` Takashi Iwai [this message]
2019-02-12 20:33   ` sylvain.bertrand
2019-02-13  6:25     ` Takashi Iwai
2019-02-13 14:13       ` sylvain.bertrand
2019-02-13 14:33         ` Takashi Iwai
2019-02-13 14:38         ` Jaroslav Kysela
2019-02-13 22:25         ` sylvain.bertrand
2019-02-13 22:43           ` sylvain.bertrand
     [not found]             ` <CA+Owze4OqfSystQ5ZNaF6sO+L-L-FceN5XBPJkqyYf7zjkp+GQ@mail.gmail.com>
2019-02-13 23:11               ` Fwd: " Joël Krähemann
2019-02-14 13:12                 ` sylvain.bertrand

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=s5hr2cd3z9b.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=sylvain.bertrand@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.