From: Takashi Iwai Subject: Re: Enumerating PCM devices Date: Mon, 02 Feb 2009 14:17:42 +0100 Message-ID: References: <4eccebac0901251957i3b876ee1ne8c8c8ce59c03371@mail.gmail.com> 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 mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 23E2B24447 for ; Mon, 2 Feb 2009 14:17:43 +0100 (CET) In-Reply-To: <4eccebac0901251957i3b876ee1ne8c8c8ce59c03371@mail.gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Bankim Bhavsar Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 25 Jan 2009 19:57:23 -0800, Bankim Bhavsar wrote: > > Hi Alsa developers/users, > > For some reason my message got truncated earlier. So here I go again. > > I'm using snd_device_name_hint("pcm"..) and then > snd_device_name_get_hint(.."NAME") to get the NAME parameter of pcm > devices. > Is it true that all sound cards that support Alsa will *always* have > "default" pcm device? At least for the sound instances from the kernel drivers, yes. Not always true for sound devices implemented via plugin (e.g. bluez), though. > I'm more inclined towards using > "default:CARD=" as the parameter to snd_pcm_open(). This way > if the program configures > hardware params for any number of channels then the appropriate PCM > device will be selected on the sound card, correct? Yes. Takashi