ALSA: usb-audio: Disable sample read check if firmware doesn't give back
authorTakashi Iwai <tiwai@suse.de>
Fri, 18 Dec 2020 14:58:58 +0000 (15:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:54:07 +0000 (11:54 +0100)
commitde8f8a38f2227e17e0aa2e6af43d044de23284d3
treeca13784e17914460e9e73d0e402e49398702d7f7
parent92549c90ed0ffabfaf7749e06c0decd3962cde64
ALSA: usb-audio: Disable sample read check if firmware doesn't give back

commit 9df28edce7c6ab38050235f6f8b43dd7ccd01b6d upstream.

Some buggy firmware don't give the current sample rate but leaves
zero.  Handle this case more gracefully without warning but just skip
the current rate verification from the next time.

Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201218145858.2357-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/clock.c