cs_dsp_read_data_word(9)
π cs_dsp_read_data_word(9) β a Kernel API Manual moment
okay bestie, welcome to the cs_dsp_read_data_word page, straight out of the Kernel API Manual and honestly? it's giving "tiny function, big responsibility" energy. she reads a word from DSP memory. that's it. that's the whole vibe. π
β¨ NAME β¨
cs_dsp_read_data_word β Reads a word from DSP memory π«Ά
πΈ SYNOPSIS πΈ
int cs_dsp_read_data_word (struct cs_dsp *dsp , int mem_type , unsigned
int mem_addr , u32 *data );
like yes, that's the whole signature, no cap. four args, one int coming back atcha. π
π¦ ARGUMENTS π¦
dspβ pointer to DSP structure. literally the main character here, she's the DSP we're talking to β¨mem_typeβ the type of DSP memory containing the data to be read. iykyk, different memory regions, and this tells us which one we're poking πmem_addrβ the address of the data within the memory region. like the exact spot. the coordinates. the address-address πdataβ a buffer to store the fetched data. she catches the word for you, put her somewhere safe π§Ί
β RETURN β
Zero for success π, a negative number on error π. that's it, that's the contract, no surprises.
fr fr check that return value, bestie β negative means something went sideways and you should not be out here pretending it slayed π
π₯ SEE ALSO π₯
Kernel file ./drivers/firmware/cirrus/cs_dsp.c β that's where the magic lives, go read her π
and the whole friend group, in the order they showed up:
cs_dsp_mem_region_name(9)cs_dsp_init_debugfs(9)cs_dsp_cleanup_debugfs(9)cs_dsp_coeff_write_acked_control(9)cs_dsp_coeff_write_ctrl(9)cs_dsp_coeff_lock_and_write_ctrl(9)cs_dsp_coeff_read_ctrl(9)cs_dsp_coeff_lock_and_read_ctrl(9)cs_dsp_hibernate(9)cs_dsp_get_ctl(9)cs_dsp_find_alg_region(9)cs_dsp_adsp1_init(9)cs_dsp_adsp1_power_up(9)cs_dsp_adsp1_power_down(9)cs_dsp_set_dspclk(9)cs_dsp_power_up(9)cs_dsp_power_down(9)cs_dsp_run(9)cs_dsp_stop(9)cs_dsp_adsp2_init(9)cs_dsp_halo_init(9)cs_dsp_remove(9)cs_dsp_read_raw_data_block(9)cs_dsp_write_data_word(9)cs_dsp_remove_padding(9)cs_dsp_adsp2_bus_error(9)cs_dsp_halo_bus_error(9)cs_dsp_halo_wdt_expire(9)cs_dsp_chunk_write(9)cs_dsp_chunk_flush(9)cs_dsp_chunk_read(9)cs_dsp_wseq_init(9)cs_dsp_wseq_write(9)cs_dsp_wseq_multi_write(9)
and that's the page!! π mwah π
cute little sign-off for you: this one ships from ./drivers/firmware/cirrus and it's dated October 2026 β so like, future icon behaviour only πβ¨
π¦ 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