cs_dsp_mock_bin_add_patch(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cs_dsp_mock_bin_add_patch ✨

okay so this is a page from the Kernel API Manual, bestie β€” it's cs_dsp_mock_bin_add_patch(9) and it's literally the glow-up your mock bin file needs πŸŽ€


🌸 NAME 🌸

cs_dsp_mock_bin_add_patch β€” adds a patch data block to the bin file. that's it, that's the whole vibe πŸ¦‹


✨ SYNOPSIS ✨

void cs_dsp_mock_bin_add_patch (struct cs_dsp_mock_bin_builder *builder
, unsigned int alg_id , unsigned int alg_ver , int mem_region , unsigned
int reg_addr_offset , const void *payload_data , size_t
payload_len_bytes );

it returns void btw β€” no return value, no drama, it just does the thing πŸ’…


🫢 ARGUMENTS 🫢

  • builder β€” pointer to struct cs_dsp_mock_bin_builder. this is your main character, the builder you're adding stuff into πŸ‘‘
  • alg_id β€” the algorithm ID for the patch πŸ”₯
  • alg_ver β€” the algorithm version for the patch ⭐
  • mem_region β€” the memory region for the patch, an int 🧚
  • reg_addr_offset β€” the offset to the start of data in register addresses πŸ“
  • payload_data β€” pointer to the buffer holding the payload data πŸ“
  • payload_len_bytes β€” how long that payload data is, in bytes 🌸
ngl bestie, payload_len_bytes is a size_t and the others are unsigned int β€” keep the types exactly as the synopsis has them, no cap πŸ™ˆ

🌈 SEE ALSO 🌈

like, the whole friend group fr fr πŸ’–


and that's the page, periodt πŸ’€ source path is ./drivers/firmware/cirrus/test, dated October 2026 β€” go forth and add those patch blocks, icon πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from