diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-11-23 09:53:17 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-11-23 15:12:56 +0100 |
commit | 7726dce14c5e7eaa78567be8c1e417acd6c83415 (patch) | |
tree | 324452b5c4628394f3f7557b5878da80bc532510 /sound/usb/media.c | |
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>
Diffstat (limited to 'sound/usb/media.c')
0 files changed, 0 insertions, 0 deletions