Skip to content
Unverified Commit 4769bfb9 authored by Samuel Holland's avatar Samuel Holland Committed by Mark Brown
Browse files

ALSA: pcm: Add a standalone version of snd_pcm_limit_hw_rates



It can be useful to derive min/max rates of a snd_pcm_hardware without
having a snd_pcm_runtime, such as before constructing an ASoC DAI link.

Create a new helper that takes a pointer to a snd_pcm_hardware directly,
and refactor the original function as a wrapper around it, to avoid
needing to update any call sites.

Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200305051143.60691-2-samuel@sholland.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6e02feb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment