summaryrefslogtreecommitdiffstats
path: root/sound/usb
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-09-13 07:55:54 +0200
committerTakashi Iwai <tiwai@suse.de>2022-09-13 07:55:54 +0200
commitf4209f692e3437c313e83bd057e6dc0c7f952549 (patch)
tree241757aef3254f9f386e68f307e84bb087b3c3a7 /sound/usb
parentALSA: dummy: Add customizable volume min/max. (diff)
parentALSA: hda/realtek: Add quirk for Huawei WRT-WX9 (diff)
downloadlinux-f4209f692e3437c313e83bd057e6dc0c7f952549.tar.xz
linux-f4209f692e3437c313e83bd057e6dc0c7f952549.zip
Merge branch 'for-linus' into for-next
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/endpoint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c
index a42f2ce19455..8c8f9a851f89 100644
--- a/sound/usb/endpoint.c
+++ b/sound/usb/endpoint.c
@@ -925,6 +925,8 @@ void snd_usb_endpoint_close(struct snd_usb_audio *chip,
endpoint_set_interface(chip, ep, false);
if (!--ep->opened) {
+ if (ep->clock_ref && !atomic_read(&ep->clock_ref->locked))
+ ep->clock_ref->rate = 0;
ep->iface = 0;
ep->altsetting = 0;
ep->cur_audiofmt = NULL;