snd_interval_ranges(9)
β¨ snd_interval_ranges(9) β¨
okay so bestie, this is a page straight out of the Kernel API Manual β it's called snd_interval_ranges, and it's lowkey the glow-up artist for interval values π
πΈ NAME πΈ
snd_interval_ranges β refine the interval value from the list of ranges
π SYNOPSIS π
int snd_interval_ranges (struct snd_interval *i , unsigned int count ,
const struct snd_interval *ranges , unsigned int mask );
no cap, that's the whole signature π
π¦ ARGUMENTS π¦
iβ the interval value to refine. this is the main character we're giving a makeover to πcountβ the number of elements in the list of ranges, fr frrangesβ the ranges list itselfmaskβ the bit-mask to evaluate β¨
π DESCRIPTION π
So here's the vibe: it refines the interval value from the list of ranges. That's it, that's the whole thing π«Ά
And when mask is non-zero, only the elements corresponding to bit 1 are evaluated. like, it's selective. it has standards. periodt π
β RETURN β
- Positive if the value is changed π«
- zero if it's not changed π
- or a negative error code π
π SEE ALSO π
Kernel file ./sound/core/pcm_lib.c, plus the whole friend group:
snd_pcm_set_ops(9)snd_pcm_set_sync_per_card(9)snd_interval_refine(9)snd_interval_div(9)snd_interval_muldivk(9)snd_interval_mulkdiv(9)snd_interval_ratnum(9)snd_interval_ratden(9)snd_interval_list(9)snd_pcm_hw_rule_add(9)snd_pcm_hw_constraint_mask(9)snd_pcm_hw_constraint_mask64(9)snd_pcm_hw_constraint_integer(9)snd_pcm_hw_constraint_minmax(9)snd_pcm_hw_constraint_list(9)snd_pcm_hw_constraint_ranges(9)snd_pcm_hw_constraint_ratnums(9)snd_pcm_hw_constraint_ratdens(9)snd_pcm_hw_constraint_msbits(9)snd_pcm_hw_constraint_step(9)snd_pcm_hw_constraint_pow2(9)snd_pcm_hw_rule_noresample(9)snd_pcm_hw_param_value(9)snd_pcm_hw_param_first(9)snd_pcm_hw_param_last(9)snd_pcm_hw_params_bits(9)snd_pcm_lib_ioctl(9)snd_pcm_period_elapsed_under_stream_lock(9)snd_pcm_period_elapsed(9)snd_pcm_add_chmap_ctls(9)
and that's the page, bestie π sourced from the ./sound/core kernel source tree, dated October 2026 β go forth and refine those intervals, you absolute icon ππ
π¦ 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