cs_dsp_mock...te_to_regmap(9)
π cs_dsp_mock_xm_header_write_to_regmap(9) π
okay so bestie, welcome to the Kernel API Manual β yes it's giving kernel-nerd, yes I'm obsessed, and yes I'm gonna walk you through this one function like we're texting at 2am π«Ά
β¨ NAME β¨
cs_dsp_mock_xm_header_write_to_regmap β literally just writes the XM header to the regmap. that's the whole vibe. no cap. π
πΈ SYNOPSIS πΈ
int cs_dsp_mock_xm_header_write_to_regmap (struct cs_dsp_mock_xm_header
*header );
(yeah the line wrap is doing its own thing, don't come for her π)
π ARGUMENTS π
headerβ a pointer tostruct cs_dsp_mock_xm_header. that's it. that's the one (1) argument. she's lowkey low-maintenance π
π¦ DESCRIPTION π¦
so here's the tea: the data sitting inside header gets written out to the XM addresses in the regmap. that's the entire plot. main character energy, zero subplot πβ¨
β RETURN β
0on success β slay, we ate π- else a negative error code β and if you see that, it's giving π, not the cute kind
π₯ SEE ALSO π₯
siblings!! found family!! go give them a read, fr fr:
- Kernel file
./drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c cs_dsp_mock_size_of_region(9)cs_dsp_mock_base_addr_for_mem(9)cs_dsp_mock_reg_addr_inc_per_unpacked_word(9)cs_dsp_mock_reg_block_length_bytes(9)cs_dsp_mock_reg_block_length_registers(9)cs_dsp_mock_reg_block_length_dsp_words(9)cs_dsp_mock_has_zm(9)cs_dsp_mock_packed_to_unpacked_mem_type(9)cs_dsp_mock_num_dsp_words_to_num_packed_regs(9)cs_dsp_mock_xm_header_get_alg_base_in_words(9)cs_dsp_mock_xm_header_get_fw_version(9)cs_dsp_mock_xm_header_drop_from_regmap_cache(9)cs_dsp_create_mock_xm_header(9)
lowkey reminder bestie: this page lives in ./drivers/firmware/cirrus/test and it's dated October 2026, in case anyone asks where you got your info π
k bye, go write that header to the regmap, ily π§ππ
π¦ 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