From patchwork Mon May 27 19:35:49 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: 799891 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 16BD4C25B74 for ; Mon, 27 May 2024 19:40:23 +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 40744829; Mon, 27 May 2024 21:40:11 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 40744829 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1716838821; bh=TmJuRDSQp2fRkO+qt84U2YXpR8Orn462Xy6kPz0SgRc=; 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=bLmlIE8EeESgdDFFri3t/eFhZXdPE5RPcNWoryYb4PocxuxQUhfN5PCb5xDV8YrGT MVwRbJiSmqrNsL85rJfXhcNsyblfZEbi69LsTz5YYgApuQxta7A2FApQyd+/RxqEDT 5Rj+PY5dgmFV+ShoRSY+HTAejt+xzK5rhKgBKy/k= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 6C863F807CA; Mon, 27 May 2024 21:37:08 +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 4ECB4F807D0; Mon, 27 May 2024 21:37:08 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9A3D6F80737; Mon, 27 May 2024 21:37:03 +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 A2256F80587 for ; Mon, 27 May 2024 21:36:24 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A2256F80587 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=VHqSqX9C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716838586; x=1748374586; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TmJuRDSQp2fRkO+qt84U2YXpR8Orn462Xy6kPz0SgRc=; b=VHqSqX9CakLPxXxPyC3hcnKhE9wKBwAJF+vIP7M2fNPRXNrUDSXSPdNP RTJ6VUFvRZkyj+lgPoXNArDe+Yvd3HtqQpAhQi8OqAmCWx66+ZsqsU/Zq FSZAw349URqZzrCeM0nnCM1xzEY2kZzugkLccMSjnzGeY8iYstfjSb2Se vJiO50MVh989D2CbLDDDJMwEFu31EzwNV42IPmIOiCit/qHx6of+2BJ61 +FSQtgTXxhSER7CZGl+cyv0ouTiCJyUyYOH1WjsQ4bKaEv5INGm2UpYNG XFRz5iUdA0IsMXp9qrLG00dXfsRm3OzuHcndSd5KeWygZOYYQcQKDrew/ g==; X-CSE-ConnectionGUID: GzkD9pIoS82N/hC0wBxI6w== X-CSE-MsgGUID: jCVU2+5RTa6TCjM4nlUDrg== X-IronPort-AV: E=McAfee;i="6600,9927,11085"; a="13339392" X-IronPort-AV: E=Sophos;i="6.08,193,1712646000"; d="scan'208";a="13339392" 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:21 -0700 X-CSE-ConnectionGUID: iZyAspuQS/ya86+gCyQHLA== X-CSE-MsgGUID: +UoF/mOtQkiChc2Lm36tnQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,193,1712646000"; d="scan'208";a="58029789" 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:20 -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 15/18] ASoC: SOF: ipc4-topology: support tdm slot number query Date: Mon, 27 May 2024 14:35:49 -0500 Message-ID: <20240527193552.165567-16-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: GY6MUN2WMMUOGGQH3UXFAET4ILSE22WU X-Message-ID-Hash: GY6MUN2WMMUOGGQH3UXFAET4ILSE22WU 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_ipc4_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/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 67e34fd559f2..df4344f7d547 100644 --- a/sound/soc/sof/ipc4-topology.c +++ b/sound/soc/sof/ipc4-topology.c @@ -3174,6 +3174,8 @@ static int sof_ipc4_dai_get_param(struct snd_sof_dev *sdev, struct snd_sof_dai * return le32_to_cpu(hw_config->mclk_rate); case SOF_DAI_PARAM_INTEL_SSP_BCLK: return le32_to_cpu(hw_config->bclk_rate); + case SOF_DAI_PARAM_INTEL_SSP_TDM_SLOTS: + return le32_to_cpu(hw_config->tdm_slots); default: dev_err(sdev->dev, "invalid SSP param %d\n", param_type); break;