cs_dsp_mock...dd_raw_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cs_dsp_mock_bin_add_raw_block(9) β€” like, the raw block adder, bestie

okay so this is a page straight out of the Kernel API Manual (cs_dsp_mock...dd_raw_block(9), if you're being formal about it) and honestly? it's a little icon. it does exactly one thing and it does it well.


✨ NAME ✨

cs_dsp_mock_bin_add_raw_block β€” literally just adds a data block to the bin file. that's the whole gig. no cap. πŸŽ€


🌸 SYNOPSIS 🌸

void cs_dsp_mock_bin_add_raw_block (struct cs_dsp_mock_bin_builder
*builder , unsigned int alg_id , unsigned int alg_ver , int type , u16
offset , u32 offset32 , const void *payload_data , size_t
payload_len_bytes );

she returns void, so don't go looking for a return value bestie, there isn't one 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

here's the whole cast, main character energy each and every one:

  • builder β€” pointer to struct cs_dsp_mock_bin_builder. this is the builder object you're handing over, like passing your friend the aux cord πŸ’œ
  • alg_id β€” the algorithm ID. unsigned int vibes.
  • alg_ver β€” the algorithm version. also unsigned int.
  • type β€” the type of the block. it's an int. yes, just type. she's lowkey mysterious like that.
  • offset β€” the 16-bit offset (u16). smol offset.
  • offset32 β€” the 32-bit offset (u32). and oop β€” heads up β€” this one is the sample rate on V1 and V2 file formats. iykyk πŸ”₯
  • payload_data β€” pointer to the buffer containing the payload data. const void *, so like, look but don't touch ✨
  • payload_len_bytes β€” the length of the payload data, in bytes. it's a size_t. very proper of her.
bestie note: offset and offset32 are two separate arguments, both live at the same time. not me almost merging them in my head 😭 keep both, fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, they're all connected:


🌈 the sign-off 🌈

so that's the page!! she lives in ./drivers/firmware/cirrus/test, she's dated October 2026, and she answers to cs_dsp_mock...dd_raw_block(9) if you ever need her again. slay, periodt, go build that bin file πŸ’–β­πŸ“

πŸ“¦ where this page comes from