snd_soc_get_xr_sx(9)
π snd_soc_get_xr_sx(9) π
okay so bestie, welcome to the Kernel API Manual β this page is literally about snd_soc_get_xr_sx, and it's the signed multi register get callback. yes the name is a mouthful, no we are not skipping it π«Ά
β¨ NAME β¨
snd_soc_get_xr_sx β signed multi register get callback π
β¨ SYNOPSIS β¨
int snd_soc_get_xr_sx (struct snd_kcontrol *kcontrol , struct
snd_ctl_elem_value *ucontrol );
like, that's the whole signature, no notes π
β¨ ARGUMENTS β¨
kcontrolβ the mreg control. that's it, that's the description, it's a mreg control fr fr πucontrolβ the control element information. all the info about the element lives here π¦
β¨ DESCRIPTION β¨
so what does this callback actually do? bestie, it gets the value of a control that can span multiple codec registers β and those registers, together, form a single signed value. like a little group project where every register contributes a few bits and the result is one number π
the control also supports specifying the total no of bits used, so you can do bitfields across the multiple codec registers. it's giving very flexible, very demure π
β οΈ okay important caveat, don't skip this: unlike the non-xr variant of sx controls, these may or may not include the sign bit β depending on nbits β and there is no shift. no shift!! none!! π
returns 0 for success. that's the whole success story, slay β
β¨ SEE ALSO β¨
the whole friend group, all in the kernel file ./sound/soc/soc-ops.c β go say hi π
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_info_xr_sx(9)snd_soc_put_xr_sx(9)snd_soc_get_strobe(9)snd_soc_put_strobe(9)
and that's the page, bestie!! π§ this one lives in ./sound/soc, dated October 2026, and it's the snd_soc_get_xr_sx(9) page β go forth and get those signed multi-register values, ily, bye!! ππΈ
π¦ 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