snd_soc_jack_report(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 of enum snd_jack_type values that are currently detected πŸ‘€ (what's actually plugged in / happening rn)
  • mask β€” a bitmask of enum snd_jack_type values 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 πŸ”₯


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