snd_pcm_fill...958_consumer(9)
π snd_pcm_fill_iec958_consumer(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a lil function from the kernel's sound corner and honestly it's giving "small but crucial" energy. let's get into it π
β¨ NAME β¨
snd_pcm_fill_iec958_consumer β fills up the consumer-format IEC958 channel status, no cap π«Ά
πΈ SYNOPSIS πΈ
int snd_pcm_fill_iec958_consumer (struct snd_pcm_runtime *runtime , u8
*cs , size_t len );
like, look at that signature. she's little. she's mighty. π
π¦ ARGUMENTS π¦
runtimeβ the pcm runtime structure, and it has to have->ratefilled in already. like pls fill in your rate first, it's literally the whole vibe check π₯csβ the channel status buffer. needs to be at least four bytes, ok? don't come at her with a tiny buffer πlenβ the length of that channel status buffer. she needs to know how much room she's working with, periodt π
β DESCRIPTION β
so what she does is: she fills in the unspecified bits in an IEC958 status bits array, using the parameters from the PCM runtime runtime. that's it, that's the job, and she does it well π
drivers may wish to tweak the contents of the buffer after it's been filled β like, she hands you the buffer and you can go in there and adjust stuff afterwards, that's totally allowed, it's giving collaborative π
π RETURN π
returns the length of the buffer π or a negative error code if something failed π (yes, negative, so check it, i'm begging you)
π§ SEE ALSO π§
- Kernel file
./sound/core/pcm_iec958.c snd_pcm_create_iec958_consumer_default(9)snd_pcm_fill_iec958_consumer_hw_params(9)snd_pcm_create_iec958_consumer(9)snd_pcm_create_iec958_consumer_hw_params(9)
like the whole iec958 friend group, they all hang out together π
ngl this page lives in./sound/core, dated October 2026, and it's filed undersnd_pcm_fill...958_consumer(9)β so if you need her again she's right there in the kernel API manual, slaying π β¨πΈ
π¦ 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