commit | 7726dce14c5e7eaa78567be8c1e417acd6c83415 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Mon Nov 23 09:53:17 2020 +0100 |
committer | Takashi Iwai <tiwai@suse.de> | Mon Nov 23 15:12:56 2020 +0100 |
tree | 324452b5c4628394f3f7557b5878da80bc532510 | |
parent | 5a6c3e11c9c9bc764cd4e2621cdb48cc9afb28a1 [diff] |
ALSA: usb-audio: Simplify hw_params rules Several hw_params functions narrows the interval via min/max rule in the very similar way, so factor out those into a helper function and use commonly. No functional changes, just minor code refactoring. Tested-by: Keith Milner <kamilner@superlative.org> Tested-by: Dylan Robinson <dylan_robinson@motu.com> Link: https://lore.kernel.org/r/20201123085347.19667-12-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>