snd_pcm_crea...958_consumer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ NAME πŸŽ€

snd_pcm_create_iec958_consumer β€” bestie, this is the one that creates consumer format IEC958 channel status ✨ (yes, the whole header of this page got truncated to snd_pcm_crea...958_consumer(9) and it's living in the Kernel API Manual, section 9, we don't talk about it πŸ’€)


✨ SYNOPSIS ✨

int snd_pcm_create_iec958_consumer (struct snd_pcm_runtime *runtime , u8
*cs , size_t len );

like, that's the whole vibe check right there 🫢


🌸 ARGUMENTS 🌸

  • runtime β€” the pcm runtime structure, and it needs ->rate already filled in, okay? that part's on you πŸ”₯
  • cs β€” the channel status buffer. it has to be at least four bytes, no cap, don't come at it with two πŸ™ˆ
  • len β€” the length of that channel status buffer, tell it how much room it's working with πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

So what it does is: it creates the consumer format channel status data inside cs, up to a maximum size of len, and it matches everything to the parameters of the PCM runtime runtime ✨ it's giving "I read the room and filled in the buffer accordingly."

And here's the cute part: drivers may wish to tweak the contents of the buffer after creation 🌈 so like, it does the main character work and then you can go in and adjust the fit, iykyk πŸ’œ


⭐ RETURN ⭐

It returns the length of the buffer πŸŽ€ β€” or a negative error code if something failed 😭 (ngl if you see a negative number, something went wrong, go fix it).


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr 🧚


lowkey reminder: cs is at least four bytes, runtime->rate must be filled in, and negative return = error. that's the tea πŸ’–

okay that's the page!! this icon ate and left no crumbs πŸ‘‘ β€” brought to you from ./sound/core, dated October 2026, mwah πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from