wm8903_mic_detect(9)
β¨ wm8903_mic_detect(9) β¨
okay so bestie, buckle up β this is a page straight outta the Kernel API Manual, and it's literally about making the WM8903 chip notice when a mic shows up. yes. that's the whole vibe. π€π
πΈ NAME πΈ
wm8903_mic_detect β Enable microphone detection via the WM8903 IRQ
likeβ¦ the whole point is mic detection, but make it interrupt-driven. iconic behavior only. β¨
π¦ SYNOPSIS π¦
int wm8903_mic_detect (struct snd_soc_component *component , struct
snd_soc_jack *jack , int det , int shrt );
that's the signature, bestie β copy it exactly, no freestyling π«Ά
π ARGUMENTS π
componentβ the WM8903 component itself. main character energy, truly πjackβ the jack you wanna report detection events on. it's givingβ¦ the messenger πdetβ the value you report for presence detection πshrtβ the value you report for short detection β‘ (yes, "shrt", they really did abbreviate it like that, no cap)
π DESCRIPTION π
okay so here's the tea β β this function enables microphone detection via IRQ on the WM8903. that's it, that's the job. π₯
BUT β and this is the important part, bestie β if GPIOs are being used to bring out signals to the processor, then only platform data configuration is needed for the WM8903. and the processor GPIOs should be configured using snd_soc_jack_add_gpios instead. so like, different path, different function. don't mix them up, iykyk π
also!! the current thresholds for detection should be configured using micdet_cfg in the platform data. that's where you set your vibes. πβ¨
heads up π«Ά β using this function will force on the microphone bias for the device. like it's not asking, it's turning it on. periodt. π
π§ SEE ALSO π§
- Kernel file
./sound/soc/codecs/wm8903.cβ go read the source, bestie, it's literally right there ππ
aaaand that's the whole page, bestie!! π this little gem lives in ./sound/soc/codecs and it's dated October 2026 β so yeah, slay, go forth and detect some microphones π
ππ¦β
π¦ 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