wm8350_mic_jack_detect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– wm8350_mic_jack_detect(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this one's a lil function from the kernel side of things and honestly? she's lowkey iconic. let's get into it ✨


🌸 NAME 🌸

wm8350_mic_jack_detect β€” literally just enable microphone jack detection. that's the whole vibe. 🎀✨


πŸŽ€ SYNOPSIS πŸŽ€

int wm8350_mic_jack_detect (struct snd_soc_component *component , struct
       snd_soc_jack *jack , int detect_report , int short_report );

like yes she returns an int, and yes she takes four whole arguments. we love a function that knows what she wants πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • component β€” the WM8350 component itself 🎧 like, the actual star of the show
  • jack β€” the jack you wanna report detection events on. this is where the gossip gets delivered πŸ“¬
  • detect_report β€” the value to report when presence is detected πŸ‘€ like "hey bestie, something's plugged in"
  • short_report β€” the value to report when a microphone short is detected πŸ’€ short circuit moment fr fr

🌈 DESCRIPTION 🌈

so what she does is enable the microphone jack detection of the WM8350. that's it, that's the job. πŸŽ€πŸ‘‘

but here's the important part, and i need you to pay attention because this is giving plot twist: if both reports are specified as zero then detection is disabled. 😭 like if detect_report and short_report are both 0, she's not detecting anything, she's just vibing. so don't come crying to me when nothing gets reported, okay? 🫢


⭐ SEE ALSO ⭐

  • Kernel file ./sound/soc/codecs/wm8350.c πŸ“
  • wm8350_hp_jack_detect(9) β€” her sibling, the headphone one πŸŽ§πŸ’œ

πŸ’€ reminder bestie: zero + zero = detection OFF. no cap. don't forget it πŸ™ˆ

and that's the whole page!! πŸŽ€ source/version is ./sound/soc/codecs, dated October 2026, and she's filed under wm8350_mic_jack_detect(9) β€” mwah, bye bestie πŸ’…πŸ’–πŸ§š

πŸ“¦ where this page comes from