wm8994_mic_detect(9)
π 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 π
- Kernel file
./sound/soc/codecs/wm8994.c wm8958_mic_detect(9)β her sibling, also slaying
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
- 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