cs_dsp_mock...ase_in_words(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to struct 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 πŸŽ€:


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