wm8350_hp_jack_detect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– wm8350_hp_jack_detect(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual page for wm8350_hp_jack_detect β€” and honestly? this little function is giving "short but iconic". it's all about turning on headphone jack detection for the WM8350, and we're gonna walk through it together, no gatekeeping. πŸŽ€


✨ NAME ✨

wm8350_hp_jack_detect β€” Enable headphone jack detection. that's literally the whole vibe: it enables headphone jack detection. periodt. πŸ’…


🌸 SYNOPSIS 🌸

int wm8350_hp_jack_detect (struct snd_soc_component *component , enum
       wm8350_jack which , struct snd_soc_jack *jack , int report );

so it's an int-returning function (yes, it returns something, keep reading the args), taking FOUR things. and the way the line breaks in the declaration? that's just the manpage being dramatic, the code is still one signature. πŸ¦‹


πŸ’œ ARGUMENTS πŸ’œ

  • component β€” the WM8350 component, aka your main character struct snd_soc_component *. everything here hangs off this baby. πŸ‘‘
  • which β€” left or right jack detect signal. yep, you pick a side, and it's typed enum wm8350_jack. no, you don't get to pick both at once, that's not the function's lore. πŸ™ˆ
  • jack β€” the jack to report detection events on, a struct snd_soc_jack *. this is where the news gets delivered. πŸ“¬
  • report β€” value to report, an int. and this one is lowkey the plot twist, because of what happens in DESCRIPTION. 😭

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the actual tea. wm8350_hp_jack_detect enables the headphone jack detection of the WM8350. 🎧✨

⚠️ but bestie, listen: if no report is specified then detection is disabled. so report isn't just some optional little sprinkle β€” it's the whole switch. no report, no detection. fr fr, that's the catch and i need you to know it. πŸ’€

🌈 SEE ALSO 🌈

  • the kernel file ./sound/soc/codecs/wm8350.c β€” go read the source, it's right there, iykyk 🧚
  • wm8350_mic_jack_detect(9) β€” the microphone counterpart, so the headphone one doesn't get lonely πŸ“

and that's the whole page bestie, you ate that. mwah. 🫢

⭐ cute little sign-off: this icon of a manual page comes from ./sound/soc/codecs, dated October 2026, and it's the Kernel API Manual number wm8350_hp_jack_detect(9) β€” same name, both in the header and the footer, obsessed with the symmetry honestly. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from