From: Kuninori Morimoto Subject: Re: simle-card DT style for DPCM Date: Tue, 02 Sep 2014 22:17:52 -0700 (PDT) Message-ID: <87vbp55lkx.wl%kuninori.morimoto.gx@gmail.com> References: <877g1o18ka.wl%kuninori.morimoto.gx@gmail.com> <20140901143047.GX29327@sirena.org.uk> 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 mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by alsa0.perex.cz (Postfix) with ESMTP id 7A711265591 for ; Wed, 3 Sep 2014 07:17:54 +0200 (CEST) Received: by mail-pa0-f45.google.com with SMTP id bj1so16335201pad.4 for ; Tue, 02 Sep 2014 22:17:53 -0700 (PDT) In-Reply-To: <20140901143047.GX29327@sirena.org.uk> 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: Mark Brown Cc: Linux-ALSA , Lars-Peter Clausen , Kuninori Morimoto List-Id: alsa-devel@alsa-project.org Hi Mark > > -- use DPCM for multi DAI -- > > sound { > > compatible = "simple-audio-card"; > > ... > > > > simple-audio-card,dai-link { > > ... > > cpu@0 { > > ... > > }; > > cpu@1 { > > ... > > }; > > codec@1 { > > ... > > }; > > } > > } > > I think here what I'd expect to see is only one CPU DAI specified for > the back end link in the CPU that is actually linked to the CODEC and > the front ends being worked out by the drivers, unless there are systems > where the set of front ends can be configured at system build time (as > opposed to from software at runtime) somehow. I still confusing about this Is this mean "simple-card indicates BE side only, FE should be created by driver somehow/automatically" ? -> how to specify/know FE side information ?? I don't think above (2 cpu + 1 codec) is not bad style from DT point of view. "configured at system build time" can be below ? ------------------ sound { compatible = "simple-audio-card"; ... dai_link: simple-audio-card,dai-link { ... cpu@1 { ... }; codec@1 { ... }; } } ---- & dai_link { cpu@0 { ... }; };