From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars-Peter Clausen Subject: Re: Question about Component and Card Date: Mon, 03 Aug 2015 08:27:23 +0200 Message-ID: <55BF09CB.6060307@metafoo.de> References: <87zj29uei7.wl%kuninori.morimoto.gx@renesas.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-out-139.synserver.de (smtp-out-139.synserver.de [212.40.185.139]) by alsa0.perex.cz (Postfix) with ESMTP id B3491264F1D for ; Mon, 3 Aug 2015 08:27:26 +0200 (CEST) In-Reply-To: <87zj29uei7.wl%kuninori.morimoto.gx@renesas.com> 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: Kuninori Morimoto , Mark Brown Cc: Linux-ALSA , Simon , Liam Girdwood List-Id: alsa-devel@alsa-project.org On 08/03/2015 07:33 AM, Kuninori Morimoto wrote: > > Hi Lars > Cc Mark > > I noticed my sound card (which is not upstreamed) can't probe in next branch. > I think it is because this patch > 1b7c12316982f74a5b8e7704c24cf5524d0723a3 > (ASoC: Prevent components from being bound to multiple cards) > > In my case, my sound device (= CPU) has some DAIs, > and these are connected to some codecs. > It is shown as below. And I would like to use these as 2 sound cards. > ex) aplay -D hw:0 xxx > aplay -D hw:1 xxx > But, 2nd sound card can't probe because of above patch now. > (component->card indicates 1st card) > It can be probeed if I used DPCM card (= 1 CPU + 2 Codec), but... > But, is my understanding wrong ? ASoC always had the restriction that you can only bind a component to a single card. Otherwise the internal data structures will get corrupted, which may result in undefined behavior at a later point. The patch made this restriction explicit to make sure that issue is caught when it happens and you don't have dig through crashes from random memory corruption. Changing this is unfortunately not really trivial. - Lars