]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitadfb47583de40164b6c3c3bbd6015c2d02f17324
treea9ac16e4b188aa52fa595d53a97e61f142947829
parent99402ff1c2265fa991964b3a67696d5f3078a225
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