Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1301134ybt; Thu, 2 Jul 2020 01:53:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqDbR8f/8NQ2gf2FCWOJ/n2BP2T5to3gfBIwbbTpwxC5LKxCHj8gaxqJaax8f8VTPKfbyq X-Received: by 2002:a17:907:7294:: with SMTP id dt20mr25939162ejc.355.1593680001720; Thu, 02 Jul 2020 01:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593680001; cv=none; d=google.com; s=arc-20160816; b=Wcy92mif8KK60vSX3AWuOXyd7jypuKD7MkuFbA08o8Rv3LgfRqlWk4BkASHlwfLg4a ra5n24F4H0xwP6FFQpZcthiDvga8Z0OreJA2HSdYT5uUiFCAUmQC5YB5Nm1swnn0PvGr ELixUmn7Ga35UA6iJX82ISzWpnC7DiTLy/lOSEslSZOmAdJIlRv+W9PCfntjiQIeNVn2 f3DbEyix5DqFQT+UsrNzY7WK5iDE4fDtvPP6aBu6KeK6PuJNJ3ECtR693ZjpbGhznGvR E6ah2BLDYKyhARqAaOqOi89a2msL6/7l/aq8GgwrXrEdNNAMV04R+bSQ/QSwIXLA1eLS GJaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=2Q5K72VtAvJEaC2JsAJUP06wqf4KeenXtkMrBm4+ycw=; b=hYRoCKX1czRQfq49usYG96Gau+IrFQchfMSCcYLcC9NKLfpYstvIF+bYoJ7amxr/Mp tOCL5UlHV+3DUGm/OtjP2uwqm9w2lCjXFgcl5S/87YQ2gKmjewI4Lh+FA5OAhkLimriP 6pwbjutAJFinWxCv8aX25utYEwpabutLm8SryjBwCLKCjls/wBDY3Vi3PpuTXeB5CKZN d21GiXhxB6Eqa3becgYXIGnYHzPDubYCoM/icgsFmcma6aKuqL4uIgEs4/GubeRMAorP d6ifgAefXdAL0E3K63n4NQGuB/HmRWUTogtODTgvC3/IzaxMPGeZz745ybde/ZN6w4FH L8EQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si5879378edl.262.2020.07.02.01.52.59; Thu, 02 Jul 2020 01:53:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726475AbgGBIux (ORCPT + 99 others); Thu, 2 Jul 2020 04:50:53 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:33726 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726042AbgGBIuw (ORCPT ); Thu, 2 Jul 2020 04:50:52 -0400 Date: 02 Jul 2020 17:50:50 +0900 X-IronPort-AV: E=Sophos;i="5.75,303,1589209200"; d="scan'208";a="50928202" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 02 Jul 2020 17:50:50 +0900 Received: from mercury.renesas.com (unknown [10.166.252.133]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 920C9400C4F6; Thu, 2 Jul 2020 17:50:50 +0900 (JST) Message-ID: <875zb6z4fq.wl-kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Sameer Pujar Cc: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 15/23] ASoC: soc-core: Identify 'no_pcm' DAI links for DPCM In-Reply-To: <49bac9c1-093c-d353-cef3-c9c3391cc00d@nvidia.com> References: <1593233625-14961-1-git-send-email-spujar@nvidia.com> <1593233625-14961-16-git-send-email-spujar@nvidia.com> <87h7utytlx.wl-kuninori.morimoto.gx@renesas.com> <9c7871ae-6649-7b0d-4780-c8389c299b04@nvidia.com> <87d05ezqlc.wl-kuninori.morimoto.gx@renesas.com> <49bac9c1-093c-d353-cef3-c9c3391cc00d@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 > > I wonder component->driver->non_legacy_dai_naming can't work for you ? > > I see currently in simple-card driver that, BE<->BE link would be > treated as CODEC<->CODEC link if 'non_legacy_dai_naming' flag is set > at both ends of BE. Do we need to set this flag for all BE? > However I am not sure how this will work out for a BE<->BE DPCM DAI > link considering the fact that I want to use chain of components and I > guess routing map would get complicated. Also going by the flag name > it was not meant to differentiate between a FE and BE? OK, non_legacy_dai_naming was just my quick idea. Maybe your soc_component_is_pcm() idea can work, but it seems a littl bit hackish for me. So, can you please 1) Add soc_component_is_pcm() on simple-card, not soc-core ? Maybe we can move it to soc-core later, but want to keep it under simple-card, so far. 2) Use it with data->component_chaining, and some comment ? non component_chaining user doesn't get damage in worst case, and easy to understand. /* * This is for BE<->BE connection. * It needs to ... * It is assumng ... * Note is ... */ if (data->component_chaining && !soc_component_is_pcm(cpus)) dai_link->no_pcm = 1; 3) maybe you can reuse snd_soc_find_dai() for soc_component_is_pcm() ? dai = snd_soc_find_dai(dlc); if (dai && (dai->pcm_new || dai->component->driver->pcm_construct)) return xxx Thank you for your help !! Best regards --- Kuninori Morimoto