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=-5.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 25BECC433DB for ; Thu, 18 Mar 2021 12:41:15 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id E4F2A64F59 for ; Thu, 18 Mar 2021 12:41:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E4F2A64F59 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org 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 167361686; Thu, 18 Mar 2021 13:40:22 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 167361686 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1616071272; bh=OxWAUwrThkhHp43zvtC2jn8e5Wl19QKu9B4DUwn9aL8=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=LvzDO2tdq6QZ95s6ucOPcqjYDPaMFryEni8uszAJn3IvFMPT24kxbt+VgzMdxW1Vc gtmzPkXGRpxx2T9fBKqZfYZYaOE2ZSLVtUbY7ZRh94J2hVV0CG/bDYA3S2X0OLdj1r tArmYOdhnv3Mps6knAXRhN/glOt0IM9cL3nBQaOw= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A5503F800C8; Thu, 18 Mar 2021 13:40:21 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9B4C1F80165; Thu, 18 Mar 2021 13:40:19 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 A5796F800C8 for ; Thu, 18 Mar 2021 13:40:14 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A5796F800C8 IronPort-SDR: Hzo56s+tD+tPOsHYB8l3lmVFl5XD2U94fMEoSKTAigpM9zQrLbEnypOcVCHxaL4XyzJJplyDMY KlGmx9TAeC1A== X-IronPort-AV: E=McAfee;i="6000,8403,9926"; a="251023112" X-IronPort-AV: E=Sophos;i="5.81,258,1610438400"; d="scan'208";a="251023112" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2021 05:40:11 -0700 IronPort-SDR: bobDO5vCHWlSL+K0947iJLJWLiFdP6txAHPD36LmOswtWjGvdIhX0QGMFpAv9yyp9afjHJW5m3 wxC2GzxwfLfw== X-IronPort-AV: E=Sophos;i="5.81,258,1610438400"; d="scan'208";a="406346515" Received: from hapte-mobl.amr.corp.intel.com (HELO [10.212.219.204]) ([10.212.219.204]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2021 05:40:10 -0700 Subject: Re: ASoC topology loading vs card bind To: Srinivas Kandagatla , =?UTF-8?Q?Amadeusz_S=c5=82awi=c5=84ski?= , broonie@kernel.org, Ranjani Sridharan References: <09c77d7e-3def-0643-b838-94d748529333@linaro.org> <4a4c96df-b145-5bb7-ad91-e5d3644f704c@linux.intel.com> <5b10ad71-44f0-d0f7-431e-18447e11596b@linaro.org> From: Pierre-Louis Bossart Message-ID: <27b526b6-9432-f014-d639-d3c80af191d3@linux.intel.com> Date: Thu, 18 Mar 2021 07:40:08 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <5b10ad71-44f0-d0f7-431e-18447e11596b@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com 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" > Am trying to load FE dais from topology file along with the graph > definition. > > Ex: > Lets say we have a dai link in soundcard which has cpus->dai_name > pointing to an FE dai ("MultiMedia1") available in topology file. Why would you want to do this? You are hard-coding an FE dailink in the machine driver, when it can be described in the topology. Look at the SOF machine drivers, they have ZERO FEs hard-coded, precisely because we want the topology to define FEs. And for legacy machine drivers, we also skip all FE dailinks and only use the ones from the topology.