cs_dsp_mock...dd_raw_block(9)
π 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 tostruct 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 intvibes.alg_verβ the algorithm version. alsounsigned int.typeβ the type of the block. it's anint. yes, justtype. 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 asize_t. very proper of her.
bestie note:offsetandoffset32are 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:
- Kernel file
./drivers/firmware/cirrus/test/cs_dsp_mock_bin.cβ the source, the mothership π§ cs_dsp_mock_bin_get_firmware(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_add_patch_off32(9)cs_dsp_mock_bin_init(9)
π 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
- 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