snd_pcm_hw_param_min(9)
β¨ snd_pcm_hw_param_min(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for snd_pcm_hw_param_min(9) π
this one's from the ALSA PCM corner of the kernel and it's lowkey iconic, so let's get into it π«Ά
πΈ NAME πΈ
snd_pcm_hw_param_min β the function that says "bestie, nothing below this value is allowed anymore" and then trims your config space accordingly βοΈβ¨
(yeah, the original NAME section is literally just that blank space, so we're keeping it real and mysterious π)
π¦ SYNOPSIS π¦
int snd_pcm_hw_param_min (struct snd_pcm_substream *pcm , struct
snd_pcm_hw_params *params , snd_pcm_hw_param_t var , unsigned int val ,
int *dir );
it's giving "one function, five arguments, zero chill" π₯
π ARGUMENTS π
pcmβ the PCM instance π this is the substream you're working on,struct snd_pcm_substream *paramsβ thehw_paramsinstance, aka the config space we're about to shrink πΈvarβ the parameter to retrieve, typedsnd_pcm_hw_param_tπvalβ the minimal value, anunsigned int, the boundary babe we're setting π―dirβ pointer to the direction, which is-1,0, or1β orNULLif you're not feeling it π
β DESCRIPTION β
okay so here's the tea β inside the configuration space defined by PARAMS, this function removes from PAR all values < VAL π§Ήβ¨ and reduces the configuration space accordingly β¨
Then it returns the new minimum β or -EINVAL if the configuration space ends up empty π (empty config space = no valid options left = the vibe check failed fr fr).
ngl, that -EINVAL is the "there's nothing left, bestie" signal, so handle it π
π SEE ALSO π
- Kernel file
./sound/core/oss/pcm_oss.cπ snd_pcm_hw_param_value_min(9)πsnd_pcm_hw_param_value_max(9)πsnd_pcm_hw_param_max(9)βsnd_pcm_hw_param_near(9)π¦snd_pcm_hw_param_set(9)π
and that's the whole page, bestie, no cap β¨ this lil manual page lives at ./sound/core/oss and it's dated October 2026 β so go forth, clamp those minimums, and slay π
ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms