From patchwork Mon May 27 19:35:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 799269 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 A531AC25B74 for ; Mon, 27 May 2024 19:39:30 +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 1D6C493A; Mon, 27 May 2024 21:39:19 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1D6C493A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1716838769; bh=pT8b6UcO81biTjXtBIqTvq5DBJ9GY2SYfo6YadyiA1k=; 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=jcgeOqmNUlGM7ylXA5O2qQLV2cZTlW50OvS9fBMx09f92QF/hqvXcCRGPlDMBtXb0 +TBroNbybh2BgTPf+DUq+GUivEpa49owKQWKUC58QxUXCPP7blW/nfA1fEKsfbm5JN 0pCwWt0at2axD+U3HUo+a8uFfRdrCFL+sd2CJ9EQ= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 81A33F806ED; Mon, 27 May 2024 21:37:00 +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 B435DF805C4; Mon, 27 May 2024 21:36:59 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 72043F806B4; Mon, 27 May 2024 21:36:55 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 3D944F8051F for ; Mon, 27 May 2024 21:36:23 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 3D944F8051F 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=RpaMUaiv DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716838584; x=1748374584; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pT8b6UcO81biTjXtBIqTvq5DBJ9GY2SYfo6YadyiA1k=; b=RpaMUaivwC+wm5vRa2fF9Y33ylkXZ+pLvbNBOIBjCW5sRDUwGGbu0ufy iMCSDg2z+H1IzXi2wn9kZadzkj2KgfyJSKyLvv8bTaJmaqw6Qff06Au6b t+cSzbvAxls5rmazV2iK35V5/i5MfoZDm3WEcvUO919J/NF3wwPRxxee9 rbIr9L66PTEML6WKQaaKh5P/fgNUBfZwICZphYSLNQbGsZdjrZ2UMv/et my0HQGzK2iBDhAwvGWQmTStuXJd2VDCHSiijLs8Nh66hjRpv0kZw7Xq3p 1PQOzApOgpzCytAxzW99/+MuaqAN9SWnbCNWrRaSlPsOgOmQls6r/DP9A g==; X-CSE-ConnectionGUID: /+vPTS64SOCWphTdnQNqaw== X-CSE-MsgGUID: qvGZmXSMQiuGjXJ9UDrNuQ== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13339387" X-IronPort-AV: E=Sophos;i="6.08,193,1712646000"; d="scan'208";a="13339387" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2024 12:36:20 -0700 X-CSE-ConnectionGUID: ybOwgpdeRLafsIn1uiQ2dg== X-CSE-MsgGUID: ceLCfibgSMaTf2xd0s1rYw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,193,1712646000"; d="scan'208";a="58029785" Received: from unknown (HELO pbossart-mobl6.lan) ([10.125.110.221]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2024 12:36:19 -0700 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, Brent Lu , Bard Liao , Pierre-Louis Bossart Subject: [PATCH 14/18] ASoC: SOF: ipc3-topology: support tdm slot number query Date: Mon, 27 May 2024 14:35:48 -0500 Message-ID: <20240527193552.165567-15-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240527193552.165567-1-pierre-louis.bossart@linux.intel.com> References: <20240527193552.165567-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: P7SFMCSFLTVB45UEQDOFCZQJXUB34HXN X-Message-ID-Hash: P7SFMCSFLTVB45UEQDOFCZQJXUB34HXN X-MailFrom: pierre-louis.bossart@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.9 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: Brent Lu Support the new parameter type SOF_DAI_PARAM_INTEL_SSP_TDM_SLOTS in sof_ipc3_dai_get_param() function to get the tdm slot number of specific SSP port. Reviewed-by: Bard Liao Signed-off-by: Brent Lu Signed-off-by: Pierre-Louis Bossart --- sound/soc/sof/ipc3-topology.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/sof/ipc3-topology.c b/sound/soc/sof/ipc3-topology.c index b68dea41cd95..be61e377e59e 100644 --- a/sound/soc/sof/ipc3-topology.c +++ b/sound/soc/sof/ipc3-topology.c @@ -2514,6 +2514,8 @@ static int sof_ipc3_dai_get_param(struct snd_sof_dev *sdev, struct snd_sof_dai * return private->dai_config->ssp.mclk_rate; case SOF_DAI_PARAM_INTEL_SSP_BCLK: return private->dai_config->ssp.bclk_rate; + case SOF_DAI_PARAM_INTEL_SSP_TDM_SLOTS: + return private->dai_config->ssp.tdm_slots; default: dev_err(sdev->dev, "invalid SSP param %d\n", param_type); break;