diff options
author | Daniel Baluta <daniel.baluta@nxp.com> | 2019-11-26 08:16:06 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-11-27 12:50:37 +0000 |
commit | 469b3ad672e27b28c5865c804426f65e69c5e41a (patch) | |
tree | 0843aed5f4e9aa736373cfd4a5c890cc93d08f54 /sound | |
parent | b81eb73be03ac736f1f8d27d64a372c62c7159e5 (diff) | |
download | linux-469b3ad672e27b28c5865c804426f65e69c5e41a.tar.gz linux-469b3ad672e27b28c5865c804426f65e69c5e41a.tar.bz2 linux-469b3ad672e27b28c5865c804426f65e69c5e41a.zip |
ASoC: SOF: topology: Fix unload for SAI/ESAI
Link unload now fails for ESAI/SAI DAIs with:
"error: invalid DAI type 6" because DAI type is not
properly handled.
Fix this by correctly handling cases where type is ESAI or SAI.
Fixes: a4eff5f86c9c5e7 ("ASoC: SOF: imx: Read ESAI parameters and send them 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/20191126141606.21650-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sof/topology.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/sof/topology.c b/sound/soc/sof/topology.c index d82ab981e840..e20b806ec80f 100644 --- a/sound/soc/sof/topology.c +++ b/sound/soc/sof/topology.c @@ -3132,7 +3132,9 @@ found: case SOF_DAI_INTEL_SSP: case SOF_DAI_INTEL_DMIC: case SOF_DAI_INTEL_ALH: - /* no resource needs to be released for SSP, DMIC and ALH */ + case SOF_DAI_IMX_SAI: + case SOF_DAI_IMX_ESAI: + /* no resource needs to be released for all cases above */ break; case SOF_DAI_INTEL_HDA: ret = sof_link_hda_unload(sdev, link); |