Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1337495ybt; Thu, 2 Jul 2020 02:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPJ/8+/414TsDbmoUEtFTv8bAgnDHwhSLQ407jZh4z1kwh3VvYU4ZaK6GiBHIedwQk7nky X-Received: by 2002:a17:906:314c:: with SMTP id e12mr23813645eje.500.1593683935912; Thu, 02 Jul 2020 02:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593683935; cv=none; d=google.com; s=arc-20160816; b=BCbeHJtdo2vCXfxz08cSEyEVQFXQ7flO0J+aB3eEqmdaxDF6IvtXYamYnWIRpsS1YR xDM4rJfOQHsx1nf0gmUUyvFE6tFaM/cHjFqdSqi/tGmbZ6dmgFuVttGSmC4a5ZHQiB5h 9LFXLIKDGAry07ZOjQf5OQVqC39kFKJVGLR+1WnKYwQsQn//MAZH0GQ5z/LSSiCz0uyd 4SCqt8OX5VL5+hSX+O9c3Nur9egbebwy/279oOxXfjXjlJFMDspBa+gtYMApS78EOYJf tYVZzZNeM1K2cKfKPPlQKTJLQ3N5H0m+o8qSA0DVpltqqBZHrQucC2WcyaNhguQLW/be RH/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc; bh=dDYuyP/VcCvHIR0JuEEZXo9QqLf+pb+8/yFvb6XxP/g=; b=VXeE/wQzbpX9YnnRbV1kzO4Jllyd2sR0epZZvXjw0Wbi0SYGlMDG70pbTA/MHfJFr/ Mzz4foaFmzonxjFeQtNpzpQ/iNsoNw2qbRPN9U5JxuI/WynsaOcpg3pAWBZWpl6CmoT0 zYEP2OiN1Al75zA7z+yQc41oyl4ioWgBgPmQmwY4lrt28mizCrKL3T7xEa04LBc+4K3/ cR+eGe/IqBt9kIlkOaQw718PrY+ODaBeCf6aTxSFquhkHpLg3egomy3eG27E7nx6BENM oPq3s+gF1R7+v2JPsAgFr27odYc7SsgubHnVyZJG2MKUiU4QWiVanRn/YojQpwuk7CAy CmpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=JaTHyCUH; 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 c9si5646237ejx.552.2020.07.02.02.58.32; Thu, 02 Jul 2020 02:58:55 -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=JaTHyCUH; 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 S1728101AbgGBJ4e (ORCPT + 99 others); Thu, 2 Jul 2020 05:56:34 -0400 Received: from hqnvemgate24.nvidia.com ([216.228.121.143]:2803 "EHLO hqnvemgate24.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726805AbgGBJ4e (ORCPT ); Thu, 2 Jul 2020 05:56:34 -0400 Received: from hqpgpgate102.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Thu, 02 Jul 2020 02:54:52 -0700 Received: from hqmail.nvidia.com ([172.20.161.6]) by hqpgpgate102.nvidia.com (PGP Universal service); Thu, 02 Jul 2020 02:56:33 -0700 X-PGP-Universal: processed; by hqpgpgate102.nvidia.com on Thu, 02 Jul 2020 02:56:33 -0700 Received: from [10.25.97.252] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 2 Jul 2020 09:56:25 +0000 CC: , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 15/23] ASoC: soc-core: Identify 'no_pcm' DAI links for DPCM To: Kuninori Morimoto 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> <875zb6z4fq.wl-kuninori.morimoto.gx@renesas.com> From: Sameer Pujar Message-ID: Date: Thu, 2 Jul 2020 15:26:21 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <875zb6z4fq.wl-kuninori.morimoto.gx@renesas.com> X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1593683692; bh=dDYuyP/VcCvHIR0JuEEZXo9QqLf+pb+8/yFvb6XxP/g=; h=X-PGP-Universal:CC:Subject:To:References:From:Message-ID:Date: User-Agent:MIME-Version:In-Reply-To:X-Originating-IP: X-ClientProxiedBy:Content-Type:Content-Transfer-Encoding: Content-Language; b=JaTHyCUHRSSIxrMUZwHzmEP4jaeDDaUhMyF/Vq4hBT2x86Hv7lFPDY5qyddsEe6eH LZ/H8+3TKvgKFHq9dYpDB13s4XKRW/icwqU/QIT6fVXsih+UdkCtxRv5ZJDR5x+nsC 6b2eoafvPpUY7C+10Q2YadI+ycqZZU4oz54ATWoHvUUoz97m2L1TN5VsEqt3GUERU3 QdGeVvznLbqFJIo8GXJW3cK8MTkTiRVCG515/9g89c5RkUKrRwyMIqbpBe16dznfxK pMGfCpvO8yW5zS8U3f0nr1Ry+Aw6ZRM+toEp3OZCuTnj66iAHEx95pTDYPTVaSgL9V aQ0sJJXuudzOA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/2/2020 2:20 PM, Kuninori Morimoto wrote: > External email: Use caution opening links or attachments > > > 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 Sounds fine, I can make changes as per above points. Thanks. > > Thank you for your help !! > > Best regards > --- > Kuninori Morimoto