snd_soc_put_volsw_sx(9)
π snd_soc_put_volsw_sx(9) β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a lil' callback that lives in the ALSA SoC side of the kernel, and honestly? she's giving quiet luxury. no cap.
β¨ NAME β¨
snd_soc_put_volsw_sx β the double mixer set callback π
like, she sets things. double mixer things. you'll see.
πΈ SYNOPSIS πΈ
int snd_soc_put_volsw_sx (struct snd_kcontrol *kcontrol , struct
snd_ctl_elem_value *ucontrol );
that's the whole vibe. two args, one int back. she's lowkey efficient π¦
π ARGUMENTS π
kcontrolβ the mixer control π this is the control object you're working with, the main character frucontrolβ the control element information π all the juicy info about what value the userland side is trying to hand you
π DESCRIPTION π
so here's the tea β: this is a callback to set the value of a double mixer control that spans 2 registers. two registers. not one. two. she's a little extra like that π
Returns 0 for success. that's it, that's the contract. zero means we ate and left no crumbs π₯
π¦ SEE ALSO π¦
kernel file ./sound/soc/soc-ops.c β that's where the ops live, iykyk π
and the whole friend group, because she does not exist in isolation bestie:
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_get_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)
literally the entire mixer-control squad π«Ά go read them, they're all iconic in their own way.
ngl bestie, if you're writing a double mixer control that spans 2 registers, this is your girl. returns 0 on success and minds her own business. slay. β¨
and that's the page!! brought to you from that one directory ./sound/soc πΈ dated October 2026 β yes our girl is from the future, we don't question it ππ mwah, go forth and mix responsibly π
π¦ 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