cs_dsp_coeff...d_write_ctrl(9)
π« cs_dsp_coeff_lock_and_write_ctrl β the Kernel API Manual, bestie edition π
okay so real talk, this page is from the Kernel API Manual and it's literally the lock-and-write glow-up of a coefficient control function. it's giving "responsible friend who remembers to lock the door" energy and honestly? we stan. π
β¨ NAME β¨
cs_dsp_coeff_lock_and_write_ctrl β writes the given buffer to the given coefficient control π«Ά
πΈ SYNOPSIS πΈ
int cs_dsp_coeff_lock_and_write_ctrl (struct cs_dsp_coeff_ctl *ctl ,
unsigned int off , const void *buf , size_t len );
π¦ ARGUMENTS π¦
ctlβ pointer to coefficient control. this is your main character, the control you're writing to πoffβ word offset at which data should be written. note the word word β it's word offset, not byte offset, iykyk βbufβ the buffer to write to the given control. this is the payload, the actual vibes you're sending πlenβ the length of the buffer in bytes. yes, bytes here β the offset is words, the length is bytes, and that's just how it is π
π₯ DESCRIPTION π₯
Same as cs_dsp_coeff_write_ctrl but takes pwr_lock. that's it, that's the whole description β but honestly that one little lock is doing a LOT of work. it's the difference between "chaotic group project" and "chaotic group project with a designated adult." π§
no cap: if you were hoping for extra lore here, there isn't any. the original says exactly this much and we're not out here making things up π
β RETURN β
- a negative number on error π
- 1 when the control value changed π
- 0 when it has not π
so like β negative means bad, 1 means slay, 0 means "nothing moved, but we're fine." three moods, one int. iconic.
π SEE ALSO π
- Kernel file
./drivers/firmware/cirrus/cs_dsp.c 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_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_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)
that's the whole friend group, all present and accounted for, no one left on read π
and that's the page!! brought to you by ./drivers/firmware/cirrus, dated October 2026, and titled cs_dsp_coeff...d_write_ctrl(9) β yes the title is truncated in the source, no we did not fix it, that's just her name π
β¨
π¦ 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