Skip to content

Commit 97a9e99

Browse files
brentlubroonie
authored andcommitted
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 <[email protected]> Signed-off-by: Brent Lu <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent e495f3e commit 97a9e99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/sof/ipc4-topology.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3174,6 +3174,8 @@ static int sof_ipc4_dai_get_param(struct snd_sof_dev *sdev, struct snd_sof_dai *
31743174
return le32_to_cpu(hw_config->mclk_rate);
31753175
case SOF_DAI_PARAM_INTEL_SSP_BCLK:
31763176
return le32_to_cpu(hw_config->bclk_rate);
3177+
case SOF_DAI_PARAM_INTEL_SSP_TDM_SLOTS:
3178+
return le32_to_cpu(hw_config->tdm_slots);
31773179
default:
31783180
dev_err(sdev->dev, "invalid SSP param %d\n", param_type);
31793181
break;

0 commit comments

Comments
 (0)