From patchwork Tue Mar 7 12:35:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 659914 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 91A9EC678D5 for ; Tue, 7 Mar 2023 12:38:02 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 53C20145F; Tue, 7 Mar 2023 13:37:10 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 53C20145F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1678192680; bh=wZa5ib0N/X6uonmxO+33bwv466OoSC0NEUpdcwHAyEM=; h=From:To:Subject:Date:In-Reply-To:References:CC:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=U74dEVrVNhUQnJMqyQOo1MFjSLZrlmSTwa1URHEwJzqzh43tSi1qTgWlB/5W9ZoBQ gpqaUK39g+Xb9tqZ/gQcc3axXYWB+G0eTnAi9sUoHKwq8cXfbKK7P8KN3q1XIUuttv rCiRQDPxNwhIrkxalzOd10/2Dlv3v9aTkQdnFsYU= Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id CBE3EF80534; Tue, 7 Mar 2023 13:36:12 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3A20CF80529; Tue, 7 Mar 2023 13:36:06 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) (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 901F1F804B1 for ; Tue, 7 Mar 2023 13:35:59 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 901F1F804B1 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=DNBJt0iN DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1678192560; x=1709728560; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wZa5ib0N/X6uonmxO+33bwv466OoSC0NEUpdcwHAyEM=; b=DNBJt0iNFQAm+BIXlk0Q8eTHfBdmCWg5DtZtbkqbXG/jdEeQ8wdSKr2z vPvxv0xR5Yxiqu3gCDeiOuwKnuQCXuP90S4ducJfOYJiVjm5Fb5f/bkN/ wwM8FhDLJUhN79DsjHR2lANFjukQwddLVvOXXwB+nMvqn215OpHBj/OBZ dUpa+i0Y54RXT0C8tyArdfmI9Ieu2K0HwoPk7LL/+HAq47xzpEkYdeZNg hx/P/s8e4n6KL+bPh3zPc0/wlmkvZEcxTVxUEsRC6ggCF80x55IdrXNs+ fFmq5SRzdcigwwtjAmwEklEJ7zeUcxY831GhlygWczGrQl+mOgO16GghL g==; X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="315492817" X-IronPort-AV: E=Sophos;i="5.98,240,1673942400"; d="scan'208";a="315492817" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2023 04:35:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10641"; a="745444376" X-IronPort-AV: E=Sophos;i="5.98,240,1673942400"; d="scan'208";a="745444376" Received: from rganesh-mobl.ger.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.252.47.75]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Mar 2023 04:35:41 -0800 From: Peter Ujfalusi To: lgirdwood@gmail.com, broonie@kernel.org Subject: [PATCH 3/3] ASoC: SOF: ipc4-topology: add core token in each module extended token list Date: Tue, 7 Mar 2023 14:35:56 +0200 Message-Id: <20230307123556.31328-4-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230307123556.31328-1-peter.ujfalusi@linux.intel.com> References: <20230307123556.31328-1-peter.ujfalusi@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: 7XVW3NRQFWSEQSQVIJ6NUBYQX26DD74P X-Message-ID-Hash: 7XVW3NRQFWSEQSQVIJ6NUBYQX26DD74P X-MailFrom: peter.ujfalusi@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: alsa-devel@alsa-project.org, pierre-louis.bossart@linux.intel.com, ranjani.sridharan@linux.intel.com, kai.vehmanen@linux.intel.com, rander.wang@intel.com, chao.song@linux.intel.com X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Rander Wang Add core token in extended token list for each module to support multi-core feature. Signed-off-by: Rander Wang Reviewed-by: Ranjani Sridharan Reviewed-by: Pierre-Louis Bossart Reviewed-by: Chao Song Signed-off-by: Peter Ujfalusi --- sound/soc/sof/ipc4-topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/sof/ipc4-topology.c b/sound/soc/sof/ipc4-topology.c index 12d8228d0828..b27d85a68426 100644 --- a/sound/soc/sof/ipc4-topology.c +++ b/sound/soc/sof/ipc4-topology.c @@ -102,6 +102,8 @@ static const struct sof_topology_token dai_tokens[] = { static const struct sof_topology_token comp_ext_tokens[] = { {SOF_TKN_COMP_UUID, SND_SOC_TPLG_TUPLE_TYPE_UUID, get_token_uuid, offsetof(struct snd_sof_widget, uuid)}, + {SOF_TKN_COMP_CORE_ID, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32, + offsetof(struct snd_sof_widget, core)}, }; static const struct sof_topology_token gain_tokens[] = {