summaryrefslogtreecommitdiff
path: root/sound/soc/sof/ipc4-topology.c
diff options
context:
space:
mode:
authorBrent Lu <brent.lu@intel.com>2024-05-27 22:35:49 +0300
committerMark Brown <broonie@kernel.org>2024-05-29 13:10:56 +0300
commit97a9e9915cbb43d0feedbe2c9cf117f3dabf1286 (patch)
treece17a70a4235c7063b5484b495ad26b802ecd5a1 /sound/soc/sof/ipc4-topology.c
parente495f3ebe967fcc487d84f80ef236e4c0e92c2b6 (diff)
downloadlinux-97a9e9915cbb43d0feedbe2c9cf117f3dabf1286.tar.xz
ASoC: SOF: ipc4-topology: support tdm slot number query
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 <yung-chuan.liao@linux.intel.com> Signed-off-by: Brent Lu <brent.lu@intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://msgid.link/r/20240527193552.165567-16-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ipc4-topology.c')
-rw-r--r--sound/soc/sof/ipc4-topology.c2
1 files changed, 2 insertions, 0 deletions
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;