pcm_format_to_bits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pcm_format_to_bits(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ β€” yes we're in kernel land today, and yes this page is short but she is iconic. This is pcm_format_to_bits(9), and she does exactly one thing but she does it with strong typing, periodt 🫢


🌸 NAME 🌸

pcm_format_to_bits β€” strong-typed conversion of pcm_format to bitwise πŸ’–

like, it takes your cute little format and turns it into bits. no cap.


✨ SYNOPSIS ✨

u64 pcm_format_to_bits (snd_pcm_format_t pcm_format );

copy that exactly bestie, character for character, don't get creative with it πŸ™ˆ


πŸŽ€ ARGUMENTS πŸŽ€

  • pcm_format β€” the PCM format. that's it. that's the whole argument. she's lowkey low-maintenance πŸ’…

⭐ RETURN ⭐

a 64bit mask corresponding to the given PCM format. so you hand her a format, she hands you back a mask, 64 bits of it, and honestly? slay πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives at ./include/sound/pcm.h β€” go say hi 🧚 and then there's the whole friend group, fr fr:


bestie reminder: that's the whole list, all 42 of them, don't you dare skip any πŸ‘‘ iykyk

k bye ily, this page came from ./include/sound, October 2026, and it's literally called pcm_format_to_bits(9) β€” go read the others too, mwah πŸ’œπŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from