snd_pcm_for...ysical_width(9)
π snd_pcm_format_physical_width(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one is a tiny little function page but it's lowkey iconic, so let's get into it π
πΈ NAME πΈ
snd_pcm_format_physical_width β bestie, this one literally just returns the physical bit-width of the format π¦ that's it, that's the whole job, and it does it slayfully π
β¨ SYNOPSIS β¨
int snd_pcm_format_physical_width (snd_pcm_format_t format );
no cap, that's the whole signature π«Ά
π ARGUMENTS π
formatβ the format you wanna check π like, hand it over and it'll tell you what's up β¨
π RETURN π
So here's the vibe check π:
- if everything's good, you get the physical bit-width of the format π
- if the format is unknown?? you get a negative error code π not me getting a negative error code, couldn't be me π
fr fr, watch out for that negative return β check before you use it, bestie π
π¦ SEE ALSO π¦
the kernel file lives at ./sound/core/pcm_misc.c and honestly it's giving "the source of truth" energy πβ¨ go peek if you're curious, iykyk
and here's the whole friend group, all iconic, all worth a follow π:
snd_pcm_format_signed(9)snd_pcm_format_unsigned(9)snd_pcm_format_linear(9)snd_pcm_format_little_endian(9)snd_pcm_format_big_endian(9)snd_pcm_format_width(9)snd_pcm_format_size(9)snd_pcm_format_silence_64(9)snd_pcm_format_set_silence(9)snd_pcm_hw_limit_rates(9)snd_pcm_rate_to_rate_bit(9)snd_pcm_rate_bit_to_rate(9)snd_pcm_rate_mask_intersect(9)
mwah π this page lives in ./sound/core, dated October 2026 β that's the source and the date, bestie, we do not gatekeep the metadata π«Άβ¨
π¦ 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