Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 38A6DCCA47F for ; Tue, 19 Jul 2022 15:55:43 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 978411686; Tue, 19 Jul 2022 17:54:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 978411686 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1658246141; bh=CvuqKzLW8z/oBJmCq4X8fDD9L8499sdFh/qoYJ5CYPo=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Y//vhNa+96xvNa7CwSkzb0LSQdqqHrWm4F39PWGM4N52NhgSEiM2CkKuPDjEctaDW UT9hICqFnL+x7oanxZiaQPBiZY48PDg/fo24zawkzf/L2hqhnBfN0oI/G1jfkhFxX7 spvvO7VV7eVa9xjZ3ll9q/hPmmfsmylhN4oQhECI= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 302A0F8016D; Tue, 19 Jul 2022 17:54:51 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id C6AA4F801EC; Tue, 19 Jul 2022 17:54:49 +0200 (CEST) Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2C827F80118 for ; Tue, 19 Jul 2022 17:54:44 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 2C827F80118 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="pu4IfSAu" Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26JASFEo009799; Tue, 19 Jul 2022 10:54:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=PODMain02222019; bh=nxj0BWv0JUj+DLYX8W3ZX/5fDJ5e7VgoDYp+YPmbytk=; b=pu4IfSAunWHKyI6sOHeEpbfoNBxHhNUitGyfpa+wccIerMlKo9F7xNAEhX7y4R5rrjhk d5ovH3oephXf+XK9QpWB1wf3mgnaIz4qJ5SIVRyoEiVKsRKi2aEkXcfrDv2fNbItd4TG xYgdP/aHMeP15qRb8jxTeLikSHcKdg++Zk6RkyCpUWk7KktlN5DfifMEfLhfr0aplkH4 hjtG9Wx7ah9PvsYD4MjjlRUP+a2s2gI6bBUhJ/7ZyMWHEW9niGWolV/qURZovf6DyUav bTwO4xX4FB4PXi0hOV4ODnQpTaGzH4O2h8x7AHW3VnN0WlSe86UYubNPet150gXYW8O0 ng== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3hdrqfgkd6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Jul 2022 10:54:42 -0500 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.9; Tue, 19 Jul 2022 10:54:40 -0500 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.9 via Frontend Transport; Tue, 19 Jul 2022 10:54:40 -0500 Received: from ediswmail.ad.cirrus.com (ediswmail.ad.cirrus.com [198.61.86.93]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id B0751475; Tue, 19 Jul 2022 15:54:40 +0000 (UTC) Date: Tue, 19 Jul 2022 15:54:40 +0000 From: Charles Keepax To: Lars-Peter Clausen Subject: Re: ASoC: Is this bug ? DAPM source vs sink Message-ID: <20220719155440.GC92394@ediswmail.ad.cirrus.com> References: <87o7xloca2.wl-kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Proofpoint-ORIG-GUID: eyITfN3SmTyJDL7WIAWebKgOKC8D9hWH X-Proofpoint-GUID: eyITfN3SmTyJDL7WIAWebKgOKC8D9hWH X-Proofpoint-Spam-Reason: safe Cc: Linux-ALSA , Mark Brown , Kuninori Morimoto X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Tue, Jul 19, 2022 at 10:50:57AM +0200, Lars-Peter Clausen wrote: > On 7/19/22 08:19, Kuninori Morimoto wrote: > >So, I guess current for_each is wrong, but I'm not 100% sure > > > > > I don't think DAPM would work if this was wrong. If you look at that > patch it consistently converted > > `sources` to `edges[SND_SOC_DAPM_DIR_OUT]` and `sinks` to > `edges[SND_SOC_DAPM_DIR_IN]` I think this is just one of those perspective things, OUT -> audio comes out of the node ie. is a source. IN -> audio goes into the node, ie. is a sink. Thanks, Charles