Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp656778pxk; Thu, 1 Oct 2020 10:37:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxUilqJ5Wwk5Bdfv3k/9WBfB5hAbbYArnnUqo1/QFiwNs0+V6c+LhBPc/SnDwYJwWhcQCn X-Received: by 2002:a17:906:edc4:: with SMTP id sb4mr9096364ejb.144.1601573858005; Thu, 01 Oct 2020 10:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601573858; cv=none; d=google.com; s=arc-20160816; b=EW8NKXZiTMUmAJIMkKk0ZkMGlDTsj8EY8WtrQEU6WCbfZ1SrYArIhss3eTCFDfT/f/ sqcySmCRj9iUdSygre9rSlfxinCwsn3JZ79RD4iSk7usagc6gE3wfcjbgbslnSHhuA3b exuCNRKrbjkKBrorxKGmJMtl9qZ6IRuyTC7qHzloJ2AzIl5Pwjkcm+26B46z9/WmEG9E BlazW59C1F8jVmOyP7Ur+DfDzVj2CjrNF5Fhs07Q/RarLRhkm5Rhg7RsfqiTuY6YwCbo uotgIugnRZcqWHe6MuPCuQBKdhXEr4hY1TUOAx0vPnaoRK1ZsUE++4drNlIWpqD9ZKJU ivNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from; bh=3W6UwWfLG2y91GsD4wxpT6TKLXhYsYzkiLpXPArPYYQ=; b=p4YdjI4/cLXSyXiHMMJk+PvGvcnGvpF6akq1Ybp9feomva/QICfQNSOFwRMbMxQxlH E/XpquvymXe6NwfB1Rlh36JgRpO2Re0iDAGn5nWi8uTT3//Kh8CXcVn2ldQftUVAQpae vjdGQjhMiDgXwbKiIJzjIzVCyrgUHY7h7pMTtQt6ny0we9ChakLMOf30ImRVtJ5nK99Z oBMKbO5cYrKds4IPI1Bc0DQjRpx4YfbYyEWcFe5kGt5YHJVbSNSdE+W8sTWsX+kCgZAk K+5Or/AOXbKgIBRRH/sHPqdI1+FyNnKW8k8y0R8LXBqUDD5mcsH4NghF7jVhmSBpiNxi ea7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=aWKbsPji; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c21si3871123edw.18.2020.10.01.10.37.15; Thu, 01 Oct 2020 10:37:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=aWKbsPji; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732965AbgJARdr (ORCPT + 99 others); Thu, 1 Oct 2020 13:33:47 -0400 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:9942 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732876AbgJARdr (ORCPT ); Thu, 1 Oct 2020 13:33:47 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 01 Oct 2020 10:32:55 -0700 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 1 Oct 2020 17:33:44 +0000 Received: from audio.nvidia.com (10.124.1.5) by mail.nvidia.com (172.20.187.18) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Thu, 1 Oct 2020 17:33:38 +0000 From: Sameer Pujar To: , , , , , , , , CC: , , , , , , , , , , , , , Sameer Pujar Subject: [PATCH v3 02/13] ASoC: soc-pcm: Get all BEs along DAPM path Date: Thu, 1 Oct 2020 23:02:56 +0530 Message-ID: <1601573587-15288-3-git-send-email-spujar@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601573587-15288-1-git-send-email-spujar@nvidia.com> References: <1601573587-15288-1-git-send-email-spujar@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601573575; bh=3W6UwWfLG2y91GsD4wxpT6TKLXhYsYzkiLpXPArPYYQ=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:In-Reply-To: References:MIME-Version:Content-Type; b=aWKbsPjiYcs+eBs60mOl5T1fCxii/NCGDY3P6oZ31iiqIW05HFPv2FdgXWbWa8UGi 7isM0+VMPdy7ZmFBmp9ekCXqBlGB9SMUuNtE4PsMElp79OIIxXjCpcWJl5PVDC7irE uZP2Pd8M9VlBNEP/sw4qZNxwXCHO8JVh5vrbjhbldNx1kkkJKZRvWH9dxiAzlcOfKZ wi8pAY5J/U8ZEDHdjUkgxwgwj0ACtW00WCh2iVV+kxRZNUvwo/Sr1XsLNQp04bp1is TzbJ1q5vE+++Whpz052t770g1QqxSzDgA2VxNX853NYEEZHukqGYr8yXBus3T89gX2 HBvgPw5jq9jNQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dpcm_end_walk_at_be() stops the graph walk when first BE is found for the given FE component. In a component model we may want to connect multiple DAIs from different components. A new flag is introduced in 'snd_soc_card', which when set allows DAI/component chaining. Later PCM operations can be called for all these listed components for a valid DAPM path. Signed-off-by: Sameer Pujar --- include/sound/soc.h | 1 + sound/soc/soc-pcm.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/sound/soc.h b/include/sound/soc.h index 3b038c5..9b69d70 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -1084,6 +1084,7 @@ struct snd_soc_card { unsigned int fully_routed:1; unsigned int disable_route_checks:1; unsigned int probed:1; + unsigned int component_chaining:1; void *drvdata; }; diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 09e8d70..25904b8 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -1283,7 +1283,8 @@ int dpcm_path_get(struct snd_soc_pcm_runtime *fe, /* get number of valid DAI paths and their widgets */ paths = snd_soc_dapm_dai_get_connected_widgets(cpu_dai, stream, list, - dpcm_end_walk_at_be); + fe->card->component_chaining ? + NULL : dpcm_end_walk_at_be); dev_dbg(fe->dev, "ASoC: found %d audio %s paths\n", paths, stream ? "capture" : "playback"); -- 2.7.4