is_sdca_aux_dev_present(9)
okay so bestie, welcome to the is_sdca_aux_dev_present(9) page β itβs giving Kernel API Manual energy, and the whole point is checking if an SDCA aux device is present on the SDW peripheral π
β¨
πΈ NAME πΈ
is_sdca_aux_dev_present β check if an SDCA aux device is present on the SDW peripheral. no cap, thatβs the whole name section π
β¨ SYNOPSIS β¨
the function signature, exactly as it lives:
int is_sdca_aux_dev_present (struct device *dev , const char
*aux_codec_name , const struct snd_soc_acpi_link_adr *adr_link , int
adr_index );
π¦ ARGUMENTS π¦
devβ Device pointer. literally the device pointer, bestie π«Άaux_codec_nameβ Aux codec name from the codec info (e.g."snd_soc_sdca.HID.2"). yes, that exact example, keep it cute πadr_linkβ ACPI link address.adr_indexβ Index of the ACPI link address.
π RETURN π
so what does it hand back? 1 if the aux is present, 0 if the aux is not present, or a negative error code. periodt. β¨
π§ SEE ALSO π§
if youβre going down the rabbit hole:
- Kernel file
./sound/soc/sdw_utils/soc_sdw_utils.c is_sdca_endpoint_present(9)
thatβs the page, bestie π«Ά β source/version: ./sound/soc/sdw_utils; date: October 2026. mwah ππ
π¦ 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