diff options
author | Ranjani Sridharan <ranjani.sridharan@linux.intel.com> | 2023-03-22 11:43:45 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-22 13:17:31 +0000 |
commit | 7d6f623c6a9d05195d1b19120383d4f42a1747db (patch) | |
tree | 5f6e57cea35a01e1d4f4fe9853f32d6848a0c3cc /sound/soc/sof/ipc3-pcm.c | |
parent | 1bf83fa6654ce8959948878aad14a6db586125b8 (diff) | |
download | lwn-7d6f623c6a9d05195d1b19120383d4f42a1747db.tar.gz lwn-7d6f623c6a9d05195d1b19120383d4f42a1747db.zip |
ASoC: SOF: pcm: Make hw_params reset conditional for IPC3
In the case of IPC4, since there is no PCM_PARAMS IPC to send the new
stream tag when restarting a stream without a hw_free, the original
stream tag needs to be preserved. So, add new a flag as part of struct
sof_ipc_pcm_ops, reset_hw_params_during_stop and set it only for IPC3.
This will ensure that the host DMA stream tag will not be given up during
the STOP trigger for IPC4.
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20230322094346.6019-3-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ipc3-pcm.c')
-rw-r--r-- | sound/soc/sof/ipc3-pcm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/sof/ipc3-pcm.c b/sound/soc/sof/ipc3-pcm.c index b29d93e0d216..b7f1eb21ca26 100644 --- a/sound/soc/sof/ipc3-pcm.c +++ b/sound/soc/sof/ipc3-pcm.c @@ -382,4 +382,5 @@ const struct sof_ipc_pcm_ops ipc3_pcm_ops = { .hw_free = sof_ipc3_pcm_hw_free, .trigger = sof_ipc3_pcm_trigger, .dai_link_fixup = sof_ipc3_pcm_dai_link_fixup, + .reset_hw_params_during_stop = true, }; |