mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 08:14:15 +08:00
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: c943a586f6
("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>
This commit is contained in:
parent
620f7c08d9
commit
eea1d18e9b
@ -267,7 +267,7 @@ int sof_restore_pipelines(struct device *dev)
|
||||
/* restore dai links */
|
||||
list_for_each_entry_reverse(dai, &sdev->dai_list, list) {
|
||||
struct sof_ipc_reply reply;
|
||||
struct sof_ipc_dai_config *config = dai->dai_config;
|
||||
struct sof_ipc_dai_config *config = &dai->dai_config[dai->current_config];
|
||||
|
||||
if (!config) {
|
||||
dev_err(dev, "error: no config for DAI %s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user