wsa_macro_set_spkr_mode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… wsa_macro_set_spkr_mode πŸ’…

okay bestie, welcome to wsa_macro_set_spkr_mode(9) from the Kernel API Manual ✨ this one is giving β€œsmall function, very specific job” energy and we’re gonna stan responsibly.


✨ NAME ✨

wsa_macro_set_spkr_mode β€” configures speaker compander and smartboost settings based on speaker mode. lowkey iconic that the name just tells you the whole plot πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

int wsa_macro_set_spkr_mode (struct snd_soc_component *component , int
       mode );

πŸ’– ARGUMENTS πŸ’–

  • component β€” codec instance. that’s the codec bestie in question 🫢
  • mode β€” indicates speaker configuration mode. yes ma’am, it’s telling us which speaker config vibe we’re in 🌸

🌸 DESCRIPTION 🌸

okay so the reported return situation is literally this: it returns 0 on success or -EINVAL on error. that’s the described contract, no cap πŸ’…

and per the NAME, the whole point is configuring speaker compander and smartboost settings based on speaker mode. so yeah: speaker mode goes in, compander and smartboost settings get configured accordingly, and 0 / -EINVAL is the return tea β˜•βœ¨

bestie, -EINVAL means error here β€” do not romanticize it, okay? 😭

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./sound/soc/codecs/lpass-wsa-macro.c
  • struct wsa_reg_layout(9)

kisses and sparkles, this page is signed off from the source/version tag ./sound/soc/codecs, dated October 2026 πŸ«ΆπŸŽ€πŸ’œ

πŸ“¦ where this page comes from