snd_soc_jack_report(9)
πΈ snd_soc_jack_report(9) β Kernel API Manual πΈ
okay bestie, this is from the Kernel API Manual and it's literally the page for snd_soc_jack_report. sit down, hydrate, let's get into it π
β¨ NAME β¨
snd_soc_jack_report β report the current status for a jack π§
π¦ SYNOPSIS π¦
void snd_soc_jack_report (struct snd_soc_jack *jack , int status , int
mask );
like, that's the whole signature, no cap β¨
π ARGUMENTS π
jackβ the jack π that's it. that's the description. the jack.statusβ a bitmask ofenum snd_jack_typevalues that are currently detected π (what's actually plugged in / happening rn)maskβ a bitmask ofenum snd_jack_typevalues that being reported π (what you're choosing to tell the world about)
π DESCRIPTION π
so here's the vibe: if you configured things using snd_soc_jack_add_pins, then the associated DAPM pins get enabled or disabled as appropriate, and DAPM gets synchronised π«Ά it's giving housekeeping but make it audio.
π NOTE π
β οΈ bestie listen to me β this function uses mutexes. it should be called from a context which can sleep, such as a workqueue π do not call it from somewhere spicy that can't sleep. that's the whole warning. respect it fr fr.
π₯ SEE ALSO π₯
- Kernel file
./sound/soc/soc-jack.cπ snd_soc_jack_add_zones(9)snd_soc_jack_get_type(9)snd_soc_jack_add_pins(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)
and that's the page, periodt π this lil icon came out of ./sound/soc, dated October 2026, and it's literally the snd_soc_jack_report(9) page π go forth and report your jacks responsibly, 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