1

ASoC: SOF: ipc3-topology: support tdm slot number query

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 <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-15-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Brent Lu 2024-05-27 14:35:48 -05:00 committed by Mark Brown
parent 1deba6e24c
commit e495f3ebe9
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;