wsa_macro_set_spkr_mode(9)
π
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
- 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