cs_dsp_mock...ase_in_words(9)
π cs_dsp_mock_xm_header_get_alg_base_in_words
okay bestie, welcome to the Kernel API Manual section 9 β yes, section 9, we're in kernel-space territory, stay with me π«Ά
β¨ NAME β¨
cs_dsp_mock_xm_header_get_alg_base_in_words β literally just tells you the algorithm base offset in DSP words. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
unsigned int cs_dsp_mock_xm_header_get_alg_base_in_words (struct
cs_dsp_test *priv , unsigned int alg_id , int mem_type );
three args, one unsigned int out, no drama π (well, ok, the formatting is a little cursed, but that's the kernel's handwriting not mine)
π ARGUMENTS π
privβ pointer tostruct cs_dsp_test. the main character struct, she holds everything together πalg_idβ the algorithm ID. which algorithm we're talking about, no ambiguity allowed π§mem_typeβ the memory region type. like, which memory are we looking in, bestie π
π¦ DESCRIPTION π¦
so basically β¨: it looks up an algorithm in the XM header, then hands you back the base offset in DSP words of that algorithm's data, inside whichever memory region you asked for with mem_type. it's giving "personal shopper for offsets" β you name the alg, you name the memory, it goes and fetches the number π
β RETURN β
the offset, in DSP words. that's the whole return value, unsigned int flavoured, no cap π₯
π SEE ALSO π
the kernel file it lives in, for the nosy girlies:
./drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.c
and now the friend group, all of them, in order, do not skip π:
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_fw_version(9)cs_dsp_mock_xm_header_drop_from_regmap_cache(9)cs_dsp_mock_xm_header_write_to_regmap(9)cs_dsp_create_mock_xm_header(9)
ok and one tiny housekeeping note π this page is filed under ./drivers/firmware/cirrus/test and it's dated October 2026 β yes, the future, she's ahead of her time π
that's the whole page bestie, go get that offset ππ π
π¦ 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