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)
commit61cc2d775e0941ca61b9666760a656919d80077a
tree921a68050a0905801a37b90d5d391d9f2cbbcb7e
parent75c16b5147ee42270b18b5f32bc3f17f8b74b5eb
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