cs_dsp_mock_bin_add_patch(9)
π 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 tostruct 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, anintπ§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_bytesis asize_tand the others areunsigned intβ keep the types exactly as the synopsis has them, no cap π
π SEE ALSO π
- Kernel file
./drivers/firmware/cirrus/test/cs_dsp_mock_bin.cπ 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_off32(9)cs_dsp_mock_bin_init(9)
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
- 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