From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FFECC433E3 for ; Tue, 18 Aug 2020 02:42:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 69C4F20716 for ; Tue, 18 Aug 2020 02:42:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726581AbgHRCl7 (ORCPT ); Mon, 17 Aug 2020 22:41:59 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:27986 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726360AbgHRCl7 (ORCPT ); Mon, 17 Aug 2020 22:41:59 -0400 Date: 18 Aug 2020 11:41:57 +0900 X-IronPort-AV: E=Sophos;i="5.76,325,1592838000"; d="scan'208";a="54610110" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 18 Aug 2020 11:41:57 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id A3E8241580A3; Tue, 18 Aug 2020 11:41:57 +0900 (JST) Message-ID: <87y2mcfzir.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Sameer Pujar Cc: , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v2 3/9] ASoC: audio-graph: Identify 'no_pcm' DAI links for DPCM In-Reply-To: <1596605064-27748-4-git-send-email-spujar@nvidia.com> References: <1596605064-27748-1-git-send-email-spujar@nvidia.com> <1596605064-27748-4-git-send-email-spujar@nvidia.com> User-Agent: Wanderlust/2.15.9 Emacs/26.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sameer > PCM devices are created for FE dai links with 'no-pcm' flag as '0'. > Such DAI links have CPU component which implement either pcm_construct() > or pcm_new() at component or dai level respectively. Based on this, > current patch exposes a helper function to identify such components > and populate 'no_pcm' flag for DPCM DAI link. > > This helps to have BE<->BE component links where PCM devices need > not be created for CPU component involved in such links. > > Signed-off-by: Sameer Pujar > --- (snip) > @@ -259,6 +270,16 @@ static int graph_dai_link_of_dpcm(struct asoc_simple_priv *priv, > if (ret < 0) > goto out_put_node; > > + /* > + * In BE<->BE connections it is not required to create > + * PCM devices at CPU end of the dai link and thus 'no_pcm' > + * flag needs to be set. It is useful when there are many > + * BE components and some of these have to be connected to > + * form a valid audio path. > + */ > + if (!soc_component_is_pcm(cpus)) > + dai_link->no_pcm = 1; > + For safety, I want to judge with data->component_chaining. if (data->component_chaining && !soc_component_is_pcm(cpus)) dai_link->no_pcm = 1; Thank you for your help !! Best regards --- Kuninori Morimoto