cs_dsp_read_raw_data_block(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cs_dsp_read_raw_data_block β€” Kernel API Manual energy ✨

okay bestie, so this is a Kernel API Manual page, and it's all about cs_dsp_read_raw_data_block β€” the little function that literally grabs a whole block of data out of DSP memory for you. no cap, it's giving "fetch" in the most technical way possible πŸŽ€


🌸 NAME 🌸

cs_dsp_read_raw_data_block β€” reads a block of data from DSP memory</p> πŸ’–


✨ SYNOPSIS ✨

int cs_dsp_read_raw_data_block (struct cs_dsp *dsp , int mem_type ,
unsigned int mem_addr , unsigned int num_words , __be32 *data );

🫢 ARGUMENTS 🫢

  • dsp β€” pointer to DSP structure. yeah she's the main character, everything runs through her πŸ‘‘
  • mem_type β€” the type of DSP memory containing the data to be read. like, which memory vibe are we in πŸ¦‹
  • mem_addr β€” the address of the data within the memory region. the lil map pin for where your data lives πŸ“
  • num_words β€” the length of the data to read. how many words we're snatching πŸ’…
  • data β€” a buffer to store the fetched data. the basket you're carrying it all home in 🧺

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea πŸ“ β€” if you use this to read unpacked 24-bit memory, each 24-bit DSP word will occupy 32-bits in data, and the MSbyte will be 0. that's the padding, bestie, it's just chillin' there πŸ™ˆ

if you don't want that extra padding hanging around, you can remove it with cs_dsp_remove_padding ✨


πŸ”₯ RETURN πŸ”₯

Zero for success πŸŽ‰ … or a negative number on error 😭 (we don't love that for us, but ok).


🌈 SEE ALSO 🌈

Kernel file ./drivers/firmware/cirrus/cs_dsp.c

and the whole friend group, fr fr:


πŸ’€ reminder that this page is from source ./drivers/firmware/cirrus and it's dated October 2026 β€” yes, the future, we're iconic like that ⭐

anyway, that's the whole page, mwah πŸ’‹ go read your DSP memory responsibly, bestie πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from