diff options
author | Takashi Iwai <[email protected]> | 2020-11-23 09:53:38 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2020-11-23 15:16:22 +0100 |
commit | 13ee03361fc5c9284067f4bfaaea4ebadbd874cf (patch) | |
tree | 8dfc92d9ad3b925f68f2e4a0f61f209ea235f0ba /lib/mpi/mpi-bit.c | |
parent | 3d58760f4d0015cc1e7765b580daa007d759d86b (diff) |
ALSA: usb-audio: Simplify rate_min/max and rates set up
There are multiple places in format.c performing the similar code for
setting the rate_min, rate_max and rates fields. This patch unifies
those in a helper function and calls it at the end of the parser phase
so that all rate_table entries have been already determined.
No functional changes, just a minor code refactoring.
Tested-by: Keith Milner <[email protected]>
Tested-by: Dylan Robinson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions