cs_dsp_chunk_write(9)
π cs_dsp_chunk_write(9)
okay bestie, welcome to the Kernel API Manual β¨ this one's all about cs_dsp_chunk_write β the lil function that formats your data into a DSP memory chunk π
πΈ NAME πΈ
cs_dsp_chunk_write β formats data to a DSP memory chunk, no cap π
π¦ SYNOPSIS π¦
int cs_dsp_chunk_write (struct cs_dsp_chunk *ch , int nbits , u32 val );
β¨ ARGUMENTS β¨
chβ pointer to the chunk structure, like the little container bestie you're writing into π«Άnbitsβ how many bits you wanna write, literally the bit count πvalβ the value you're writing, the actual content, the main character of this whole operation π
π DESCRIPTION π
So here's the vibe: this function sequentially writes values into the format required for DSP memory. She's doing double duty β handling the inserting of the padding bytes and converting to big endian, and she does it all without breaking a sweat ππ₯
β οΈ but bestie, listen β data is only committed to the chunk when a whole DSP words worth of data is available. like, she's not gonna half-commit, that's not her energy. whole word or nothing, periodt π
π RETURN π
- Zero for success π
- a negative number on error π
π§ SEE ALSO π§
Kernel file ./drivers/firmware/cirrus/cs_dsp.c
and the whole friend group, fr fr:
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_read_data_word(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_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 whole page bestie!! brought to you straight from the source dir./drivers/firmware/cirrus, dated October 2026, in the Kernel API Manual βcs_dsp_chunk_write(9)signing off πβ¨π slay responsibly π«Ά
π¦ 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