ASoC: SOF: Intel: hda: Clear Soundwire node ID during BE DAI hw_free
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 2 Apr 2024 15:18:23 +0000 (10:18 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 2 Apr 2024 16:14:53 +0000 (17:14 +0100)
commitbfe9225455c032c9dd5637047760cf59562e599f
treee5bc97ccff91d3c5a029d00f7c5467288b17d1a2
parent2ac9e09ba0e874deeba13c3259dc18f22b622311
ASoC: SOF: Intel: hda: Clear Soundwire node ID during BE DAI hw_free

When an xrun happens, the BE DAI hw_params doesn't get invoked before
the stream restarts with a prepare. In this case, clearing the node ID
when the DAI widget is freed and unprepared will result in an error when
it is re-initialized. In order to avoid this, move the code to clear the
node ID to the BE DAI hw_free op to keep it balanced with the BE DAI
hw_params.

Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@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://msgid.link/r/20240402151828.175002-13-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c
sound/soc/sof/ipc4-topology.c