Commit 61cc2d7
committed
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>1 parent 75c16b5 commit 61cc2d7
1 file changed
+13
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
699 | | - | |
| 698 | + | |
700 | 699 | | |
701 | | - | |
702 | | - | |
703 | | - | |
| 700 | + | |
704 | 701 | | |
705 | | - | |
706 | 702 | | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | | - | |
| 703 | + | |
711 | 704 | | |
712 | | - | |
713 | 705 | | |
714 | | - | |
715 | | - | |
716 | | - | |
717 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
718 | 713 | | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
| 714 | + | |
| 715 | + | |
725 | 716 | | |
726 | 717 | | |
| 718 | + | |
727 | 719 | | |
728 | 720 | | |
729 | 721 | | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | 722 | | |
734 | 723 | | |
735 | 724 | | |
| |||
0 commit comments