linux/sound/soc/sof
Ranjani Sridharan 86f74ba3fe
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: 0acb48dd31 ("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>
2021-11-24 12:57:11 +00:00
..
imx Linux 5.15-rc6 2021-10-18 13:50:42 +01:00
intel ASoC: SOF: hda: reset DAI widget before reconfiguring it 2021-11-24 12:57:11 +00:00
xtensa Linux 5.15-rc6 2021-10-18 13:50:42 +01:00
compress.c ASoC: SOF: Introduce fragment elapsed notification API 2021-10-07 16:57:57 +01:00
control.c ASoC: SOF:control: Fix variable type in snd_sof_refresh_control() 2021-11-04 13:33:22 +00:00
core.c Linux 5.15-rc6 2021-10-18 13:50:42 +01:00
debug.c ASoC: SOF: debug: Print out the fw_state along with the DSP dump 2021-10-07 15:45:33 +01:00
ipc.c ASoC: SOF: prepare code to allocate IPC messages in fw_ready 2021-10-08 13:51:16 +01:00
Kconfig ASoC: SOF: build compression interface into snd_sof.ko 2021-11-12 21:25:18 +00:00
loader.c Linux 5.15-rc6 2021-10-18 13:50:42 +01:00
Makefile ASoC: SOF: Introduce fragment elapsed notification API 2021-10-07 16:57:57 +01:00
nocodec.c ASOC: SOF: simplify nocodec mode 2021-04-12 17:05:55 +01:00
ops.c ASoC: SOF: ops: Force DSP panic dumps to be printed 2021-10-07 15:45:35 +01:00
ops.h Merge series "Introduce new SOF helpers" from Daniel Baluta <daniel.baluta@oss.nxp.com> 2021-10-07 22:24:58 +01:00
pcm.c ASoC: SOF: Introduce fragment elapsed notification API 2021-10-07 16:57:57 +01:00
pm.c Merge series "ASoC: SOF: Improvements for debugging" from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>: 2021-10-07 22:24:56 +01:00
sof-acpi-dev.c ASoC: SOF: Check desc->ops directly in acpi/pci/of probe functions 2021-05-21 13:13:35 +01:00
sof-acpi-dev.h ASoC: SOF: ACPI: avoid reverse module dependency 2021-03-02 15:31:40 +01:00
sof-audio.c ASoC: SOF: pipelines: Harmonize all functions to use struct snd_sof_dev 2021-10-07 15:45:45 +01:00
sof-audio.h Merge series "Introduce new SOF helpers" from Daniel Baluta <daniel.baluta@oss.nxp.com> 2021-10-07 22:24:58 +01:00
sof-of-dev.c ASoC: SOF: OF: Add fw_path and tplg_path parameters 2021-10-05 13:09:59 +01:00
sof-pci-dev.c ASoC: SOF: Intel: Use DMI string to search for adl_mx98373_rt5682 variant 2021-08-03 18:26:10 +01:00
sof-pci-dev.h ASoC: SOF: pci: split PCI into different drivers 2021-03-02 15:32:00 +01:00
sof-priv.h ASoC: SOF: prepare code to allocate IPC messages in fw_ready 2021-10-08 13:51:16 +01:00
sof-probes.c ASoC: SOF: sof-probes: Correct the function names used for snd_soc_cdai_ops 2021-09-16 14:04:15 +01:00
sof-probes.h ASoC: SOF: probe: Merge and clean up the probe and compress files 2021-09-16 14:04:13 +01:00
stream-ipc.c ASoC: SOF: Make Intel IPC stream ops generic 2021-10-07 16:57:54 +01:00
topology.c Merge series "Introduce new SOF helpers" from Daniel Baluta <daniel.baluta@oss.nxp.com> 2021-10-07 22:24:58 +01:00
trace.c Linux 5.15-rc6 2021-10-18 13:50:42 +01:00
utils.c ASoC: SOF: core: Do not use 'bar' as parameter for block_read/write 2021-09-15 16:25:04 +01:00