Skip to content

Commit e495f3e

Browse files
brentlubroonie
authored andcommitted
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 <[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 1deba6e commit e495f3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/soc/sof/ipc3-topology.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2514,6 +2514,8 @@ static int sof_ipc3_dai_get_param(struct snd_sof_dev *sdev, struct snd_sof_dai *
25142514
return private->dai_config->ssp.mclk_rate;
25152515
case SOF_DAI_PARAM_INTEL_SSP_BCLK:
25162516
return private->dai_config->ssp.bclk_rate;
2517+
case SOF_DAI_PARAM_INTEL_SSP_TDM_SLOTS:
2518+
return private->dai_config->ssp.tdm_slots;
25172519
default:
25182520
dev_err(sdev->dev, "invalid SSP param %d\n", param_type);
25192521
break;

0 commit comments

Comments
 (0)