]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ASoC: SOF: ipc4-topology: support tdm slot number query
authorBrent Lu <brent.lu@intel.com>
Mon, 27 May 2024 19:35:49 +0000 (14:35 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 29 May 2024 10:10:56 +0000 (11:10 +0100)
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>
sound/soc/sof/ipc4-topology.c

index 67e34fd559f2aa71e9b67392d347f5c2089cb5b4..df4344f7d547dbd5098501c93f7f3db0f09f8d4e 100644 (file)
@@ -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;