OpenCloudOS-Kernel/sound/pci/rme9652
Takashi Iwai 6cc4e5eaad ALSA: hdsp: Break infinite MIDI input flush loop
[ Upstream commit c01f3815453e2d5f699ccd8c8c1f93a5b8669e59 ]

The current MIDI input flush on HDSP and HDSPM drivers relies on the
hardware reporting the right value.  If the hardware doesn't give the
proper value but returns -1, it may be stuck at an infinite loop.

Add a counter and break if the loop is unexpectedly too long.

Link: https://patch.msgid.link/20240808091513.31380-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-10 11:57:30 +02:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
hdsp.c ALSA: hdsp: Break infinite MIDI input flush loop 2024-10-10 11:57:30 +02:00
hdspm.c ALSA: hdsp: Break infinite MIDI input flush loop 2024-10-10 11:57:30 +02:00
rme9652.c ALSA: rme9652: Convert to generic PCM copy ops 2023-08-18 12:18:24 +02:00