ALSA: usb-audio: Allow changing from a bad sample rate
authorAdam Goode <agoode@google.com>
Wed, 18 Jul 2018 20:41:05 +0000 (16:41 -0400)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 Jul 2018 06:44:46 +0000 (08:44 +0200)
commit58cabe8715f20b7fb33431bb1f2c5bd7a438b11b
treea9ac16e4b188aa52fa595d53a97e61f142947829
parent67ece13ffe862f9d17a144c6cd3feef88a57db13
ALSA: usb-audio: Allow changing from a bad sample rate

If the audio device is externally clocked and set to a rate that does
not match the external clock, the clock will never be valid and we cannot
set the rate successfully. To fix this, allow a rate change even if
the clock is initially invalid, and validate again after the rate is
changed.

This fixes problems with MOTU UltraLite AVB hardware over USB.

Signed-off-by: Adam Goode <agoode@google.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/clock.c