snd_pcm_hw_param_value(9)
π snd_pcm_hw_param_value β like, the Kernel API Manual page you actually wanna read π
okay so bestie, welcome to the Kernel API Manual entry for snd_pcm_hw_param_value(9) β yes the whole nine, no skips, we're reading it together. grab a matcha π
β¨ NAME β¨
snd_pcm_hw_param_value β return @params field @var value π«Ά
like, it goes and fetches a value for you out of the params struct. that's the vibe.
πΈ SYNOPSIS πΈ
int snd_pcm_hw_param_value (const struct snd_pcm_hw_params *params ,
snd_pcm_hw_param_t var , int *dir );
π¦ ARGUMENTS π¦
paramsβ thehw_paramsinstance π like, the actual config object we're digging through.varβ the parameter to retrieve π this is the thing you're asking about.dirβ pointer to the direction (-1,0,1) orNULLπ so yes, you can hand itNULLand it's totally fine, no cap.
π₯ RETURN π₯
So here's the tea: you get the value for field var if it's fixed in the configuration space defined by params. π If it's not fixed, you get -EINVAL instead. that's it, that's the whole deal, periodt.
lowkey important: "fixed in configuration space" is doing a lot of work in that sentence β if it ain't fixed, don't expect a number, expect -EINVAL. π
π§ SEE ALSO π§
okay this list is long but we are not skipping a single one, bestie. every name stays, character for character, iykyk. π
Also the kernel file: ./sound/core/pcm_lib.c π
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_interval_ranges(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_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)
that's the whole page, bestie, you ate that π β¨
sign-off szn π β this lil beauty lives in ./sound/core, dated October 2026, and it's the snd_pcm_hw_param_value(9) page, mwah π see u in the next manpage, ily, bye!! π¦πΈ
π¦ 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