From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ashish Chavan Subject: Re: Does ASoC support sound card with multiple interfaces? Date: Wed, 4 Jan 2012 12:30:01 +0530 Message-ID: <1325660401.12508.113.camel@matrix> References: <1325516773.12508.57.camel@matrix> <20120102201642.GA30932@sirena.org.uk> <1325655413.12508.79.camel@matrix> <4F03E80B.907@st.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe004.messaging.microsoft.com [216.32.181.184]) by alsa0.perex.cz (Postfix) with ESMTP id 351312485E for ; Wed, 4 Jan 2012 07:48:05 +0100 (CET) In-Reply-To: <4F03E80B.907@st.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: Rajeev kumar Cc: alsa-devel , Mark Brown , "; Liam Girdwood" List-Id: alsa-devel@alsa-project.org > You need to redirect it . You can use > > aplay -Dplughw:0,1 x.wav. > > Here '0' indicated card number and '1' indicates device number Is it really mandatory to specify card and device id? Isn't there a middle layer that takes care of using "first free" interface for playback or recording, if interface is not explicitly specified? As we register DAIs with ALSA subsystem, it should be fairly easy for alsa-lib to find out "first free" interface. I am aware that this wouldn't be practically useful in most cases, because generally we know beforehand which specific interface to be used for playback/recording. In such cases, automatic selection of interface may be confusing to users. But I just want to confirm if this is at all possible?