cs_amp_write_ambient_temp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

cs_amp_write_ambient_temp β€” ok so bestie, this is the one that writes a value to the calibration ambient temperature ✨ (yes, that's the whole job, and it does it flawlessly, no cap)

Oh and btw this whole page lives in the Kernel API Manual section (section 9, kernel API vibes only πŸŽ€), just so you know where you are πŸ’–


✨ SYNOPSIS ✨

int cs_amp_write_ambient_temp (struct cs_dsp *dsp , const struct
       cirrus_amp_cal_controls *controls , u32 temp );

Like… look at her. Returns an int, takes three args, main character energy fr fr πŸ‘‘


🫢 ARGUMENTS 🫢

  • dsp β€” pointer to struct cs_dsp. Just a lil pointer, she's pointing at the DSP, that's her whole thing πŸ’«
  • controls β€” pointer to the definition of the firmware controls that are to be read. const, so hands off, she's not for editing πŸ™ˆ
  • temp β€” the temperature, in degrees celcius. That's a u32, so it's unsigned and it's ready 🌑️

πŸ”₯ RETURN πŸ”₯

0 on success πŸ’š β€” otherwise a negative error value 😭 (so like, if your number is < 0, something went wrong, periodt)


🌈 SEE ALSO 🌈

Kernel file ./sound/soc/codecs/cs-amp-lib.c and her whole friend group, they all ate:


okay that's the whole page, go write some ambient temps bestie, you're gonna slay πŸ’…βœ¨

sign-off szn πŸŽ€: this lil masterpiece comes to you from ./sound/soc/codecs, dated October 2026, and it's cs_amp_write_ambient_temp(9) through and through πŸ¦‹ bye pookie 🫢

πŸ“¦ where this page comes from