cs_dsp_mock..._patch_off32(9)
β¨ NAME β¨
okay so bestie, welcome to the Kernel API Manual β this page is all about cs_dsp_mock_bin_add_patch_off32, and what it does is literally just add a patch data block with 32-bit offset. that's it. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void cs_dsp_mock_bin_add_patch_off32 (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 );
no return value, it's a void girlie β she does the thing and dips π
π¦ ARGUMENTS π¦
builderβ pointer tostruct cs_dsp_mock_bin_builder. this is the main character, the builder you're poking at β¨alg_idβ the algorithm ID for the patch. like, which algo are we talking about here πalg_verβ the algorithm version for the patch. gotta be specific, periodt.mem_regionβ the memory region for the patch. where it lives, fr fr.reg_addr_offsetβ offset to the start of the data in register addresses. lowkey important, don't skip it π«Άpayload_dataβ pointer to the buffer containing the payload data. the actual good stuff πpayload_len_bytesβ length of payload data in bytes. gotta know how much of that buffer to read, ngl π
π SEE ALSO π
- kernel file
./drivers/firmware/cirrus/test/cs_dsp_mock_bin.cβ go read the source, iykyk π§ cs_dsp_mock_bin_get_firmware(9)cs_dsp_mock_bin_add_raw_block(9)cs_dsp_mock_bin_add_info(9)cs_dsp_mock_bin_add_name(9)cs_dsp_mock_bin_add_patch(9)cs_dsp_mock_bin_init(9)
ok that's the whole page bestie, go forth and build your mock bins π«‘π₯
source: ./drivers/firmware/cirrus/test Β· dated October 2026 β mwah, hope this helped, ily, bye! π
πππ
π¦ 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