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 11:06:53 +0530 Message-ID: <1325655413.12508.79.camel@matrix> References: <1325516773.12508.57.camel@matrix> <20120102201642.GA30932@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe002.messaging.microsoft.com [216.32.181.182]) by alsa0.perex.cz (Postfix) with ESMTP id 721F224824 for ; Wed, 4 Jan 2012 06:24:55 +0100 (CET) In-Reply-To: <20120102201642.GA30932@sirena.org.uk> 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: Mark Brown Cc: alsa-devel , "; Liam Girdwood" List-Id: alsa-devel@alsa-project.org > > I have a codec with multiple TX and RX channels. In ASoC tree, I have > > seen examples where these kind of codecs are implemented as multichannel > > codecs. Instead I want it to be treated as card with multiple > > Yes, this is totally supported. There are quite a few examples of this > in the tree. Your CODEC driver should just implement one DAI per audio > interface. > Thanks. I am looking at some of the examples in the tree and have a small query. I want to know how alsa-utils (aplay, arecord) will behave when a codec driver supports multiple DAIs. For example, let's assume that a codec driver implements two DAIs, both capable of doing stereo playback. Then I try to play two files simultaneously using aplay, e.g. $ aplay x.wav $ aplay y.wav AFAIK first "aplay" will result in play back on default interface/DAI (i.e. 0). What will happen with second aplay? Will it automatically find a free DAI to playback? or it is mandatory to explicitly specify the PCM/card # for second aplay? Similarly what will happen in case of arecord when a codec supports multiple DAIs capable of capturing?