From patchwork Fri Oct 6 08:44:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 730012 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 E70EBE92FF8 for ; Fri, 6 Oct 2023 08:48: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 18102852; Fri, 6 Oct 2023 10:47:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 18102852 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1696582081; bh=EhXajnmYx6a8+QlAu8D0OJBtQMFoHUgLH48OKYq38d0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=D8wWuxFdjL5MZmLvflbJsYVsqXrg/LKaqeeMhkY2myqZGLcSPt7odxEKEvEZjx4Rw 1OTn5KYtMq4M29v9ow1B7Qzt1Z3WYd9n9/4CRkRJoWl0LjenNCskXpiQjbPWd4rZtB pJYJxxhCac+XiQ689DPo/GyjyDWTO5COuXwDlvz8= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 57408F8057F; Fri, 6 Oct 2023 10:46:05 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 768C9F8057D; Fri, 6 Oct 2023 10:46:04 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id DC2C2F80130; Fri, 6 Oct 2023 10:45:40 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 135ABF80130 for ; Fri, 6 Oct 2023 10:45:36 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 135ABF80130 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=ZpTuQ4ni DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696581938; x=1728117938; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EhXajnmYx6a8+QlAu8D0OJBtQMFoHUgLH48OKYq38d0=; b=ZpTuQ4nibBNxth+ygu+6dCdjn662Zmf8IVXuEhQbkD7RZv5QzsyvOqJD fdWJhkd3UKtVkfc/CJsS4loRNxuAtGh3CsoYlxCh6/WjHCXEj0jBtoO2x BQ2rg/T7nO2GVIt7FhrQw/bUyvCRVIjrXTTuejn8KUcEKf+vQgsOpelZ+ pP1qZn3r8wPkR+ceSdw5NcIkyuPrLPJm0q4Plx90pFiPsIQPiQO06IS4l 3ny6J1IoWPfIi3yexKTI4Gj1kvaLw6/ZNLUAddPuUNr6nUAmDD3RZ42Vg ZrATPguIWw2Yb8ahsFDAzknj25Ku+kXvbkfhIpObXukN12jGUMoo2/Fqe Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="5263825" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="5263825" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2023 01:44:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="868266286" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="868266286" Received: from mesalamy-mobl.ger.corp.intel.com (HELO pujfalus-desk.ger.corp.intel.com) ([10.252.42.190]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2023 01:44:45 -0700 From: Peter Ujfalusi To: lgirdwood@gmail.com, broonie@kernel.org 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 Subject: [PATCH 1/2] ASoC: SOF: IPC4: get pipeline priority from topology Date: Fri, 6 Oct 2023 11:44:53 +0300 Message-ID: <20231006084454.19170-2-peter.ujfalusi@linux.intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231006084454.19170-1-peter.ujfalusi@linux.intel.com> References: <20231006084454.19170-1-peter.ujfalusi@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: 73WXU4TW4EANDVYZJ67I26JGUNZRWNW7 X-Message-ID-Hash: 73WXU4TW4EANDVYZJ67I26JGUNZRWNW7 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 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 Driver set pipeline priority according to priority setting in topology. Reviewed-by: Péter Ujfalusi Signed-off-by: Rander Wang Signed-off-by: Pierre-Louis Bossart Signed-off-by: Peter Ujfalusi --- sound/soc/sof/ipc4-topology.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sound/soc/sof/ipc4-topology.c b/sound/soc/sof/ipc4-topology.c index af90c14ad57a..b24a64377f68 100644 --- a/sound/soc/sof/ipc4-topology.c +++ b/sound/soc/sof/ipc4-topology.c @@ -44,6 +44,8 @@ static const struct sof_topology_token ipc4_sched_tokens[] = { offsetof(struct sof_ipc4_pipeline, use_chain_dma)}, {SOF_TKN_SCHED_CORE, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32, offsetof(struct sof_ipc4_pipeline, core_id)}, + {SOF_TKN_SCHED_PRIORITY, SND_SOC_TPLG_TUPLE_TYPE_WORD, get_token_u32, + offsetof(struct sof_ipc4_pipeline, priority)}, }; static const struct sof_topology_token pipeline_tokens[] = { @@ -683,9 +685,6 @@ static int sof_ipc4_widget_setup_comp_pipeline(struct snd_sof_widget *swidget) goto err; } - /* TODO: Get priority from topology */ - pipeline->priority = 0; - dev_dbg(scomp->dev, "pipeline '%s': id %d, pri %d, core_id %u, lp mode %d\n", swidget->widget->name, swidget->pipeline_id, pipeline->priority, pipeline->core_id, pipeline->lp_mode);