]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix EP matching for continuous rates
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 08:53:30 +0000 (09:53 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Nov 2020 14:15:06 +0000 (15:15 +0100)
commit96edead3774b7ea6f37a2ff723f022e95fc075d7
tree921a68050a0905801a37b90d5d391d9f2cbbcb7e
parent95d63385fd15efb6e1fff28c97cc6af37d0fd74a
ALSA: usb-audio: Fix EP matching for continuous rates

The function to evaluate the match of the parameters with an EP
assumes only the discrete rate tables and doesn't handle the
continuous rates properly.

This patch fixes match_endpoint_audioformats() to handle the
continuous rates.  Also the almost useless debug prints there are
dropped.

Tested-by: Keith Milner <kamilner@superlative.org>
Tested-by: Dylan Robinson <dylan_robinson@motu.com>
Link: https://lore.kernel.org/r/20201123085347.19667-25-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c