snd_soc_jack...ier_register(9)
π snd_soc_jack...ier_register(9) π
okay bestie, welcome to the Kernel API Manual β yes that's the manual name, no I will not be shortening it, it's iconic β¨ this one's about snd_soc_jack_notifier_register, and it's a whole vibe.
πΈ NAME πΈ
snd_soc_jack_notifier_register β register a notifier for jack status π
π¦ SYNOPSIS π¦
void snd_soc_jack_notifier_register (struct snd_soc_jack *jack , struct
notifier_block *nb );
like, that's the whole signature, copy it exactly pls, don't be weird about it π
β¨ ARGUMENTS β¨
jackβ the ASoC jack π§ that's the one we're watching, main character energy frnbβ the notifier block to register π like, this is the thing that gets pinged
π«Ά DESCRIPTION π«Ά
okay so here's the tea β β you call this to register for notification of the current status of the jack. that's it, that's the gig π
β οΈ no cap, important: it is not possible to report additional jack events in the callback from the notifier. so don't try it, bestie, it's not gonna slay, it's just gonna not work π
what is it actually for? it's intended to support applications such as enabling electrical detection only when a mechanical detection event has occurred πβ‘ like, it's the "hey something mechanically happened, now you may turn on your little electrical detection thing" hook. lowkey genius, honestly π
π₯ SEE ALSO π₯
kernel file π ./sound/soc/soc-jack.c
and the whole friend group π:
snd_soc_jack_report(9)snd_soc_jack_add_zones(9)snd_soc_jack_get_type(9)snd_soc_jack_add_pins(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!! π this lil gem lives in ./sound/soc and it's dated October 2026 with the title snd_soc_jack...ier_register(9) right there in the footer β go read the source, 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