ALSA: usb-audio: add quirk to fix Hamedal C20 disconnect issue
authorAi Chao <aichao@kylinos.cn>
Thu, 10 Nov 2022 06:34:52 +0000 (14:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Dec 2022 16:41:02 +0000 (17:41 +0100)
commit799970b8cc45129b6366b8ad8d3147a1cd2c3029
tree99110a27d1f2d3f9d68c4d691bee089caf97cca1
parent38b09dc14f7c4aa28e57ec4f6bb2828c1637aea9
ALSA: usb-audio: add quirk to fix Hamedal C20 disconnect issue

[ Upstream commit bf990c10231937c0f51e5da5558e08cf5adc6a78 ]

For Hamedal C20, the current rate is different from the runtime rate,
snd_usb_endpoint stop and close endpoint to resetting rate.
if snd_usb_endpoint close the endpoint, sometimes usb will
disconnect the device.

Signed-off-by: Ai Chao <aichao@kylinos.cn>
Link: https://lore.kernel.org/r/20221110063452.295110-1-aichao@kylinos.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/usb/endpoint.c
sound/usb/quirks.c
sound/usb/usbaudio.h