linux-stable/sound
Krzysztof Kozlowski 9f329cf8c6 ASoC: wcd934x: fix order of Slimbus unprepare/disable
commit e96bca7eaa upstream.

Slimbus streams are first prepared and then enabled, so the cleanup path
should reverse it.  The unprepare sets stream->num_ports to 0 and frees
the stream->ports.  Calling disable after unprepare was not really
effective (channels was not deactivated) and could lead to further
issues due to making transfers on unprepared stream.

Fixes: a61f3b4f47 ("ASoC: wcd934x: add support to wcd9340/wcd9341 codec")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20220921145354.1683791-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-24 09:56:44 +02:00
..
ac97
aoa
arm
atmel
core ALSA: rawmidi: Drop register_mutex in snd_rawmidi_free() 2022-10-24 09:56:39 +02:00
drivers ALSA: aloop: Fix random zeros in capture data when using jiffies timer 2022-09-15 10:47:09 +02:00
firewire
hda ALSA: hda: intel-nhlt: Correct the handling of fmt_config flexible array 2022-09-08 11:23:58 +02:00
i2c
isa m68knommu: changes for linux 5.19 2022-05-30 10:56:18 -07:00
mips
oss
parisc
pci ALSA: hda/realtek: Add Intel Reference SSID to support headset keys 2022-10-24 09:56:39 +02:00
pcmcia
ppc
sh
soc ASoC: wcd934x: fix order of Slimbus unprepare/disable 2022-10-24 09:56:44 +02:00
sparc
spi
synth
usb ALSA: usb-audio: Fix NULL dererence at error path 2022-10-24 09:56:39 +02:00
virtio
x86 ALSA: x86: intel_hdmi_audio: use pm_runtime_resume_and_get() 2022-06-17 10:46:38 +02:00
xen xen/sndfront: use xenbus_setup_ring() and xenbus_teardown_ring() 2022-05-19 14:22:08 +02:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c