rt_sdca_button_detect(9)
π rt_sdca_button_detect(9) π
ok so bestie, welcome to the Kernel API Manual β this is the page for rt_sdca_button_detect, and she is literally the moment where the kernel reads a UMP message and decides what kind of button you just pressed. yes queen, button identification. π
β¨ NAME β¨
rt_sdca_button_detect β read the UMP message and decide the button type, periodt. π₯
πΈ SYNOPSIS πΈ
int rt_sdca_button_detect (struct regmap *map , unsigned int entity_id ,
unsigned int hid_buf_addr , unsigned int hid_id );
π¦ ARGUMENTS π¦
mapβ the map for setting, iykyk πΊοΈentity_idβ the SDCA entity ID πhid_buf_addrβ the HID buffer address, like, the address of the buffer π¬hid_idβ the Report ID for HID π
π DESCRIPTION π
So the whole vibe is this: a button type gets returned regarding to the buffer β and if the buffer cannot be recognized, she returns zero. no cap, that's the fallback. π
β SEE ALSO β
- Kernel file
./sound/soc/codecs/rt-sdw-common.c rt_sdca_index_write(9)rt_sdca_index_read(9)rt_sdca_index_update_bits(9)rt_sdca_btn_type(9)rt_sdca_headset_detect(9)
go read those too bestie, they're all in their main character era π«Ά
and that's the page!! this little icon lives over in ./sound/soc/codecs, and this version is dated October 2026 β ok bye, ily, go detect some buttons πβ¨π¦
π¦ 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