]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: hda: reset DAI widget before reconfiguring it
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Tue, 23 Nov 2021 16:57:59 +0000 (18:57 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 24 Nov 2021 12:57:11 +0000 (12:57 +0000)
commitf24f7cdf2dce9b3ab8b48e894b71289bb37b8809
tree2e0765e56873b1747acb4263a96157776be4fcd3
parentac4d745bb77bbfe3d52de38980f710df965f4c1d
ASoC: SOF: hda: reset DAI widget before reconfiguring it

It is not unusual for ALSA/ASoC hw_params callbacks to be invoked
multiple times. Reset and free the DAI widget before reconfiguring
it to keep the DAI widget use_count balanced.

Fixes: b55e9c322d1c ("ASoC: SOF: Intel: hda: make sure DAI widget is set up before IPC")
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com>
Reviewed-by: Bard Liao <bard.liao@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20211123165759.127884-1-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c