From mboxrd@z Thu Jan 1 00:00:00 1970 From: Liam Girdwood Subject: Re: asoc multi-component: almost there! Date: Tue, 27 Jul 2010 14:49:06 +0100 Message-ID: <1280238546.3085.89.camel@odin> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ww0-f51.google.com (mail-ww0-f51.google.com [74.125.82.51]) by alsa0.perex.cz (Postfix) with ESMTP id 90CFB24584 for ; Tue, 27 Jul 2010 15:49:13 +0200 (CEST) Received: by wwb18 with SMTP id 18so622560wwb.20 for ; Tue, 27 Jul 2010 06:49:13 -0700 (PDT) In-Reply-To: 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: Timur Tabi Cc: alsa-devel mailing list , Mark Brown List-Id: alsa-devel@alsa-project.org On Mon, 2010-07-26 at 17:37 -0500, Timur Tabi wrote: > Liam, > > I almost got it working. I can generate names that match, so it finds it: > > soc_bind_dai_link:1136 cpu_dai->name=e0016000.ssi, > dai_link->cpu_dai_name=e0016000.ssi > soc_bind_dai_link:1159 codec->name=cs4270-codec.0-004f, > dai_link->codec_name=cs4270-codec.0-004f > soc_bind_dai_link:1169 codec_dai->name=e0016000.ssi, > dai_link->codec_dai_name=cs4270-hifi > soc_bind_dai_link:1169 codec_dai->name=cs4270-hifi, > dai_link->codec_dai_name=cs4270-hifi > soc_bind_dai_link:1194 platform->name=e0021180.dma-channel, > dai_link->platform_name=e0021100.dma-channel > soc_bind_dai_link:1194 platform->name=e0021100.dma-channel, > dai_link->platform_name=e0021100.dma-channel > soc_bind_dai_link:1136 cpu_dai->name=e0016000.ssi, > dai_link->cpu_dai_name=e0016000.ssi > soc_bind_dai_link:1159 codec->name=cs4270-codec.0-004f, > dai_link->codec_name=cs4270-codec.0-004f > soc_bind_dai_link:1169 codec_dai->name=e0016000.ssi, > dai_link->codec_dai_name=cs4270-hifi > soc_bind_dai_link:1169 codec_dai->name=cs4270-hifi, > dai_link->codec_dai_name=cs4270-hifi > soc_bind_dai_link:1194 platform->name=e0021180.dma-channel, > dai_link->platform_name=e0021180.dma-channel > asoc: cs4270-hifi <-> e0016000.ssi mapping ok > > but then I get this: > > sysfs: cannot create duplicate filename '/devices/platform/soc-audio/cs4270' > > I'm registering two DAIs -- one for playback, one for capture, but I'm > using the same name for the codec DAI. How do I resolve this? > Ah ok, I thought you meant two CODEC DAIs earlier rather than two machine DAI links. Each machine DAI link now has a sysfs entry so we can inspect its configuration/status now. Hence each machine DAI link must be named differently. You could have a "cs4270 playback" and "cs4270 capture" DAI links now. Thanks Liam -- Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk