diff options
author | Samuel Holland <[email protected]> | 2020-03-04 23:11:41 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-03-06 14:24:09 +0000 |
commit | 4769bfb9dada678b31a2ec275372624dbfeed9d1 (patch) | |
tree | 4aa8cbb12078b5351f58bfa417b66fbdffbb7faa /lib/memory-notifier-error-inject.c | |
parent | 6e02feb0d2663c1b7caa5e271c2a60e219f0ca07 (diff) |
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: Samuel Holland <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions