OSDN Git Service

ALSA: usb-audio: Add clock validity quirk for Denon MC7000/MCX8000
authorAlexander Tsoy <alexander@tsoy.me>
Wed, 12 Feb 2020 23:54:50 +0000 (02:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 18:51:54 +0000 (19:51 +0100)
commit8e57f6a66102c186c01b96feb2c93543bdb60766
tree000f6ef071fcc594e2cd8234d5bb8e79c103d7b5
parent59ed2b7a186a52eddf01f3f4e137d5469c803c1a
ALSA: usb-audio: Add clock validity quirk for Denon MC7000/MCX8000

commit 9f35a31283775e6f6af73fb2c95c686a4c0acac7 upstream.

It should be safe to ignore clock validity check result if the following
conditions are met:
 - only one single sample rate is supported;
 - the terminal is directly connected to the clock source;
 - the clock type is internal.

This is to deal with some Denon DJ controllers that always reports that
clock is invalid.

Tested-by: Tobias Oszlanyi <toszlanyi@yahoo.de>
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200212235450.697348-1-alexander@tsoy.me
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/clock.c
sound/usb/clock.h
sound/usb/format.c