snd_soc_jack_add_pins(9)
π snd_soc_jack_add_pins(9) π
okay so welcome to the snd_soc_jack_add_pins(9) page from the Kernel API Manual, bestie π«Ά we're gonna get you comfy with this one, no cap.
πΈ NAME πΈ
snd_soc_jack_add_pins β Associate DAPM pins with an ASoC jack. That's literally the whole main-character job of this function β¨
β¨ SYNOPSIS β¨
here's the exact signature, don't let the pointer energy scare you:
int snd_soc_jack_add_pins (struct snd_soc_jack *jack , int count ,
struct snd_soc_jack_pin *pins );
π ARGUMENTS π
jackβ an ASoC jack created withsnd_soc_card_jack_new_pins. That's your main character jack πcountβ Number of pins. Literally how many pins are in the array.pinsβ Array of pins. The whole lineup, and yes, the vibes are immaculate.
π¦ DESCRIPTION π¦
so here's the tea: after this function has been called, the DAPM pins you specified in the pins array will have their status updated to reflect the current state of the jack whenever the jack status is updated. That's the loop, and it's lowkey iconic πβ¨
π SEE ALSO π
Kernel file: ./sound/soc/soc-jack.c β go peek at the source, bestie, it's giving useful π
snd_soc_jack_report(9)snd_soc_jack_add_zones(9)snd_soc_jack_get_type(9)snd_soc_jack_notifier_register(9)snd_soc_jack_notifier_unregister(9)snd_soc_jack_add_gpios(9)snd_soc_jack_add_gpiods(9)snd_soc_jack_free_gpios(9)
okay that's the page, bestie π«Ά the source is ./sound/soc, dated October 2026, and it's the snd_soc_jack_add_pins(9) page β periodt π
β¨
π¦ 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