android_kernel_samsung_sm8650/sound
Prashanth K cdf3049537 sound: usb: qmi: Prevent usb_audio_disconnect from getting blocked
Performing USB POPI during audio stream can cause a situation
where usb_audio_disconnect() gets stuck. Consider a scenario,
handle_uaudio_stream_req() increases the usage_count and calls
enable_audio_stream(). If disconnect happens during this time,
usb_audio_disconnect() waits for usage_count) to be zero. And
in the meantime, handle_uaudio_stream_req() will decrease the
usage_count, but usb_audio_disconnect will not proceed since
wake_up() wasn't called.

wait_event() requires wake_up() to be called after changing any
variable that could change the result of the wait condition.
Fix this by calling wake_up() in handle_uaudio_stream_req()
after decreasing the usage_count.

Change-Id: Ia4d8e7ab789d284476dfdd28eb53d81c8ac9b5b8
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
2023-11-23 20:00:07 -08:00
..
ac97 ALSA: ac97: Replace sprintf() with sysfs_emit() 2022-08-02 16:03:41 +02:00
aoa ALSA: aoa: Fix I2S device accounting 2022-10-27 08:53:08 +02:00
arm ALSA: arm: pxa: pxa2xx-ac97-lib: fix return value check of platform_get_irq() 2022-10-29 10:45:27 +02:00
atmel
core UPSTREAM: mm: replace vma->vm_flags direct modifications with modifier calls 2023-06-07 14:24:57 +00:00
drivers ALSA: mts64: fix possible null-ptr-defer in snd_mts64_interrupt 2022-12-31 13:32:22 +01:00
firewire ALSA: firewire-tascam: add missing unwind goto in snd_tscm_stream_start_duplex() 2023-04-20 12:35:05 +02:00
hda ALSA: hda: intel-dsp-config: add MTL PCI id 2023-03-22 13:34:00 +01:00
i2c ALSA: i2c/cs8427: fix iec958 mixer control deactivation 2023-04-20 12:35:05 +02:00
isa ALSA: sb: Use DIV_ROUND_UP() instead of open-coding it 2022-09-29 08:11:55 +02:00
mips
oss sound: oss: dmasound: remove software_input_volume declaration 2022-09-09 09:11:06 +02:00
parisc
pci ALSA: hda/realtek: fix mute/micmute LEDs for a HP ProBook 2023-04-26 14:28:38 +02:00
pcmcia ALSA: pdaudiocf: Drop superfluous GFP setup 2022-08-24 08:00:26 +02:00
ppc sound updates for 6.1-rc1 2022-10-05 12:02:07 -07:00
sh
soc ANDROID: Snap to android14-6.1-2023-06 2023-08-08 17:02:27 -07:00
sparc
spi sound:spi: remove reference to AVR32 in Atmel AT73C213 DAC driver 2022-08-03 11:11:26 +02:00
synth ALSA: emux: Avoid potential array out-of-bound in snd_emux_xg_control() 2023-02-14 19:11:41 +01:00
usb sound: usb: qmi: Prevent usb_audio_disconnect from getting blocked 2023-11-23 20:00:07 -08:00
virtio
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c