STRUCT CS_DSP_CHUNK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct cs_dsp_chunk(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual entry for struct cs_dsp_chunk(9) β€” yes the whole page is literally named after the struct, that's the vibe. this is the lowkey glossary moment where the kernel explains itself to you, and honestly? she ate. πŸŽ€


✨ NAME ✨

struct cs_dsp_chunk β€” describes a buffer holding data formatted for the DSP πŸ¦‹

like, it's the little container that carries data around while it's getting all dressed up in the DSP's preferred format. main character energy fr fr.


✨ SYNOPSIS ✨

struct cs_dsp_chunk {
    u8 *data;
    u8 *max;
    int bytes;
    u32 cache;
    int cachebits;
 };

not me presenting the whole struct like a lineup πŸ’… five members, all iconic, all doing their thing. details below, no skips.


✨ Members ✨

  • data β€” pointer to the underlying buffer memory 🌸 like, the actual raw memory she's living in. this is the ground floor.
  • max β€” pointer to the end of the buffer memory 🫢 the boundary. the limit. the "you shall not pass" of this buffer.
  • bytes β€” number of bytes read/written into the memory chunk ⭐ so like, the running tally of how much stuff has actually gone in or come out.
  • cache β€” temporary holding data as it is formatted πŸŽ€ a lil waiting room for data mid-glow-up.
  • cachebits β€” number of bits of data currently in cache πŸ’œ exactly what it sounds like: how many bits are currently chilling in there.
ngl, data/max/bytes are your classic buffer trio, and cache/cachebits are the backstage crew making the formatting happen. all five matter, don't skip any. 😭

✨ SEE ALSO ✨

kernel file ./include/linux/firmware/cirrus/cs_dsp.h and honestly the whole friend group:

iykyk β€” that's the whole cirrus firmware squad, go read them all πŸ”₯


okay that's the whole page bestie!! πŸ’– this one came from ./include/linux/firmware/cirrus, dated October 2026, and it's filed under struct cs_dsp_chunk(9) in the kernel docs. go forth and format your DSP data, you absolute legend πŸ‘‘πŸŒˆβœ¨

πŸ“¦ where this page comes from