diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2019-10-08 18:44:40 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-10-10 16:17:40 +0200 |
commit | a4eff5f86c9c5e7d07d880bd86ce8faad19d7063 (patch) | |
tree | f1ed68c8b7ac1e7bf4bd3cf4a3df18e4f87c186e /sound/soc/sof/pcm.c | |
parent | ASoC: SOF: acpi led support for switch controls (diff) | |
download | linux-a4eff5f86c9c5e7d07d880bd86ce8faad19d7063.tar.xz linux-a4eff5f86c9c5e7d07d880bd86ce8faad19d7063.zip |
ASoC: SOF: imx: Read ESAI parameters and send them to DSP
ESAI parameters are read for topology file, packed into
sof_ipc_dai_esai_parms struct and then sent to DSP.
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20191008164443.1358-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/pcm.c')
-rw-r--r-- | sound/soc/sof/pcm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/sof/pcm.c b/sound/soc/sof/pcm.c index 6490b1577152..d72798d2b302 100644 --- a/sound/soc/sof/pcm.c +++ b/sound/soc/sof/pcm.c @@ -682,6 +682,14 @@ static int sof_pcm_dai_link_fixup(struct snd_soc_pcm_runtime *rtd, case SOF_DAI_INTEL_ALH: /* do nothing for ALH dai_link */ break; + case SOF_DAI_IMX_ESAI: + channels->min = dai->dai_config->esai.tdm_slots; + channels->max = dai->dai_config->esai.tdm_slots; + + dev_dbg(sdev->dev, + "channels_min: %d channels_max: %d\n", + channels->min, channels->max); + break; default: dev_err(sdev->dev, "error: invalid DAI type %d\n", dai->dai_config->type); |