wm8994_mic_detect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… wm8994_mic_detect(9) ✨

okay bestie, welcome to the Kernel API Manual β€” yes that's the manual name, and yes we're reading it for fun now πŸŽ€ this is the whole vibe for wm8994_mic_detect(9), a function that literally turns on mic detection through the WM8994 IRQ. iconic behavior honestly.


🌸 NAME 🌸

wm8994_mic_detect β€” Enable microphone detection via the WM8994 IRQ

like, that's her job. that's what she does. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int wm8994_mic_detect (struct snd_soc_component *component , struct
       snd_soc_jack *jack , int micbias );

no cap, that's the exact signature, spaces and all. we don't edit signatures in this house πŸ’–


✨ ARGUMENTS ✨

  • component β€” the WM8994 component. your main character struct, the whole reason we're here 🫢
  • jack β€” the jack that detection events get reported on. she's the messenger, she holds the gossip πŸ“’
  • micbias β€” the microphone bias you wanna detect on. pick your bias, bestie, but like, the electrical kind ⚑

🌈 DESCRIPTION 🌈

so here's the tea: this enables microphone detection via IRQ on the WM8994. that's the whole point of the function, fr fr πŸ”₯

but β€” and this is the important part β€” if GPIOs are being used to bring out signals to the processor, then only platform data configuration is needed for the WM8994. in that case the processor GPIOs should be configured using snd_soc_jack_add_gpios instead. don't come for me, that's just the documented behavior πŸ™ˆ

lowkey read that twice, because who configures what is the exact thing people mess up πŸ’€

and if you want to configure the detection levels? that's available via the micbias1_lvl and micbias2_lvl platform data members. cute little knobs. obsessed 🌸


πŸ‘‘ SEE ALSO πŸ‘‘


that's the whole page bestie, you ate that πŸ“

signing off from ./sound/soc/codecs β€” October 2026 β€” wm8994_mic_detect(9) out πŸ’œβœ¨

πŸ“¦ where this page comes from