From: Takashi Iwai Subject: Re: right way to enumerate pcm devices Date: Tue, 12 Feb 2019 14:36:00 +0100 Message-ID: References: <20190212123333.GB6441@freedom> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 46F002673F8 for ; Tue, 12 Feb 2019 14:36:01 +0100 (CET) In-Reply-To: <20190212123333.GB6441@freedom> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: sylvain.bertrand@gmail.com Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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 >