snd_pcm_format_linear(9)
β¨ snd_pcm_format_linear(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for snd_pcm_format_linear β yes it's a 9th-section page, yes it's a kernel function, yes we're doing this π
πΈ NAME πΈ
snd_pcm_format_linear β the vibe check that tells you whether a PCM format is linear π₯
π SYNOPSIS π
int snd_pcm_format_linear (snd_pcm_format_t format );
that's it. one function, one argument, no drama π¦
π ARGUMENTS π
formatβ the format to check π like, the actual PCM format you're side-eyeing. that's the whole input, she's lowkey simple and we love her for it.
β RETURN β
returns 1 if the given PCM format is linear, 0 if not. that's it, that's the answer β a little yes/no binary moment, no cap π«Ά
fr fr it only ever hands you back1or0, so don't go looking for negative error codes here, she's not that kind of function π
π SEE ALSO π
the whole squad, assembled π the kernel file lives at ./sound/core/pcm_misc.c, and these are the besties it hangs out with:
snd_pcm_format_signed(9)snd_pcm_format_unsigned(9)snd_pcm_format_little_endian(9)snd_pcm_format_big_endian(9)snd_pcm_format_width(9)snd_pcm_format_physical_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 okay that's the page π this icon lives in ./sound/core, and the version stamp says October 2026 β so like, future-dated slay, we love a timestamp with main character energy βπ go check your formats, bestie, iykyk π§
π¦ 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