snd_soc_get_volsw_sx(9)
π snd_soc_get_volsw_sx(9) π
okay so bestie, you're in the Kernel API Manual and today's main character is snd_soc_get_volsw_sx β literally the single mixer get callback. yes that's its whole vibe. let's get into it π
β¨ SYNOPSIS β¨
int snd_soc_get_volsw_sx (struct snd_kcontrol *kcontrol , struct
snd_ctl_elem_value *ucontrol );
that's the whole signature, no cap. two args, returns an int, slay.
π¦ ARGUMENTS π¦
kcontrolβ the mixer control π like, the control itself, that's herucontrolβ control element information β¨ the info about the element, bestie
πΈ DESCRIPTION πΈ
so this is the callback that gets the value of a single mixer control β or, plot twist, a double mixer control that spans 2 registers π yeah, two registers. iconic of her honestly.
Returns 0 for success. periodt. π
π SEE ALSO π
the whole friend group, fr fr β and they all live in the kernel file ./sound/soc/soc-ops.c:
snd_soc_info_enum_double(9)snd_soc_get_enum_double(9)snd_soc_put_enum_double(9)snd_soc_info_volsw(9)snd_soc_info_volsw_sx(9)snd_soc_get_volsw(9)snd_soc_put_volsw(9)snd_soc_put_volsw_sx(9)snd_soc_limit_volume(9)snd_soc_info_xr_sx(9)snd_soc_get_xr_sx(9)snd_soc_put_xr_sx(9)snd_soc_get_strobe(9)snd_soc_put_strobe(9)
go read them all, iykyk π«Ά
okay that's the page!! this one came from ./sound/soc, dated October 2026 β mwah, go touch some registers bestie πβ¨
π¦ 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