From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: right way to enumerate pcm devices Date: Wed, 13 Feb 2019 07:25:13 +0100 Message-ID: References: <20190212123333.GB6441@freedom> <20190212203324.GA1399@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 BFBAC267497 for ; Wed, 13 Feb 2019 07:25:13 +0100 (CET) In-Reply-To: <20190212203324.GA1399@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 21:33:24 +0100, sylvain.bertrand@gmail.com wrote: > > On Tue, Feb 12, 2019 at 02:36:00PM +0100, Takashi Iwai wrote: > > 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. > > Hi again, > > I am listing the pcm devices, and for the USB mic of my webcam, I get input > (IOID=Input) pcm devices for surroundX/frontspeakers/IEC958, which are > actually output pcm devices. > Why those output pcm devices are hinted as input devices?? Is this expected? > Bug? If not, how am I supposed to select the proper input pcm devices the > right(tm) way ? It's only the matter of alsa-lib card config. Just due to heuristic reason, the secondary device is assigned as iec958 as default. There are explicit whitelist setup in alsa-lib/src/conf/cards/USB-Audio.conf for the card that behave differently. You'd need to adjust accordingly. Takashi