snd_pcm_hw_param_min(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 β€” the hw_params instance, aka the config space we're about to shrink 🌸
  • var β€” the parameter to retrieve, typed snd_pcm_hw_param_t πŸ‘‘
  • val β€” the minimal value, an unsigned int, the boundary babe we're setting 🎯
  • dir β€” pointer to the direction, which is -1, 0, or 1 β€” or NULL if 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 πŸ’œ


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