ASoC: SOF: use current DAI config during resume
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Thu, 15 Apr 2021 16:21:07 +0000 (11:21 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 15 Apr 2021 17:11:30 +0000 (18:11 +0100)
commiteea1d18e9b2d959df908746b193f66dba3078473
tree98b4368704b974afb07cbdb789a7c1ceaae8c175
parent620f7c08d9852e7972b9935e383904141e55f5bf
ASoC: SOF: use current DAI config during resume

Recently, the sof_pcm_dai_link_fixup() function was
updated to match SSP config with the PCM hw_params
and set the current_config for the DAI widget.

But the sof_restore_pipelines() function still chooses the
default config for the DAI widget upon resuming. Fix this
to use the last used config when setting up the DAI widget
during resume.

Fixes: c943a586f6e49 ("ASoC: SOF: match SSP config with pcm hw params")
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210415162107.130963-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/sof-audio.c