snd_soc_info_xr_sx(9)
π snd_soc_info_xr_sx(9) π
okay so bestie, welcome to the Kernel API Manual entry for snd_soc_info_xr_sx β signed multi register info callback. pull up a chair, we're getting into it π
β¨ NAME β¨
snd_soc_info_xr_sx β signed multi register info callback. that's the whole vibe. iconic, honestly. π
π¦ SYNOPSIS π¦
int snd_soc_info_xr_sx (struct snd_kcontrol *kcontrol , struct
snd_ctl_elem_info *uinfo );
like, that's the incantation. type it exactly, no cap. π
πΈ ARGUMENTS πΈ
kcontrolβ the mreg control. yeah. that one. it's giving "the control in question" π«Άuinfoβ the control element information. this is where the info about the element lives. lowkey important ngl.
π DESCRIPTION π
okay so picture this: you've got a control that spans multiple codec registers, and when you smoosh all those registers together they form one single signed value. this callback is the one that hands over the info about a control like that. main character energy fr fr β¨
and here's the tea π΅ β unlike the non-xr variant of sx controls, these ones may or may not include the sign bit, and that all depends on nbits. also there is no shift. none. zero. don't go looking for one, bestie, it's not there π
it returns 0 for success. that's it. that's the whole return situation. slay. π
ngl, the nbits sign-bit thing is the part people get wrong β the sign bit is conditional, not guaranteed. read it twice, iykyk π
π§ SEE ALSO π§
Kernel file ./sound/soc/soc-ops.c β and like, the whole friend group:
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_put_volsw_sx(9)snd_soc_limit_volume(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, i'll wait π
anyway, that's the page!! shoutout to the ./sound/soc girlies and this October 2026 edition of the Kernel API Manual. mwah, love u, go read some source code ππβ
π¦ 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