Revert "ALSA: usb-audio: Clear fixed clock rate at closing EP"

This reverts commit 8ca3315bd8 which is
commit 809f44a0cc upstream.

It breaks the Android kernel abi and can be brought back in the future
in an abi-safe way if it is really needed.

Bug: 161946584
Change-Id: Ida23c2d5a4c347a7d38d7dddcb9a9205a21f9a47
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2024-05-16 10:18:59 +00:00
parent 7c2694fa40
commit f41d29ad04

View File

@@ -935,8 +935,6 @@ 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;