params_format(9)
β¨ params_format π
okay so bestie, welcome to params_format(9) from the Kernel API Manual β yes it's a section 9 kernel page, yes we're gonna read it together, and yes it's gonna be adorable and also completely accurate π
πΈ NAME πΈ
params_format β get the sample format from the hw params
like, you hand it your hardware params and it tells you what the sample format is. that's the whole vibe. iconic, lowkey π¦
β¨ SYNOPSIS β¨
snd_pcm_format_t params_format (const struct snd_pcm_hw_params *p );
one function, one argument, one return type. clean, minimal, ate π
π«Ά ARGUMENTS π«Ά
pβ hw params
that's it. that's the whole argument list. it's the hw params, babe. the hardware params. the const struct snd_pcm_hw_params * of it all π
fr fr keep the const β it's not out here mutating your params, it's just reading them. respectful king behavior π
π¦ SEE ALSO π¦
okay so there's a kernel file you should know about β it lives at ./include/sound/pcm_params.h β and it's giving source of truth. also these sibling pages, all section 9, all besties:
go read them, they're all part of the same little friend group πβ¨
π cute sign-off π
that's the page!! sourced from ./include/sound, dated October 2026, and honestly? she understood the assignment. mwah π π§ββοΈ π
π¦ 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