]> 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)
commitbd80737f25a9d2be952b123a0d2736da29c0f850
tree921a68050a0905801a37b90d5d391d9f2cbbcb7e
parent35ed56aa50965094a84d62744fd00cb29c3d03b1
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