wm8958_mic_detect(9)
π wm8958_mic_detect(9) β like, the kernel API manual bestie π
okay so first things first, the manual name is wm8958_mic_detect(9) and this whole page lives in the Kernel API Manual, which is exactly where you'd expect a kernel API to be, no cap β¨
πΈ NAME πΈ
wm8958_mic_detect β turns on microphone detection via the WM8958 IRQ π€β¨
π¦ SYNOPSIS π¦
int wm8958_mic_detect (struct snd_soc_component *component , struct
snd_soc_jack *jack , wm1811_micdet_cb det_cb , void *det_cb_data ,
wm1811_mic_id_cb id_cb , void *id_cb_data );
like, yes, that's a whole lot of arguments, but we're gonna go through every single one, i promise π«Ά
π ARGUMENTS π
componentβ the WM8958 component ποΈ that's the star of the showjackβ the jack to report detection events on π this is where the gossip gets reporteddet_cbβ detection callback πdet_cb_dataβ data for detection callback π¦id_cbβ mic id callback π€id_cb_dataβ data for mic id callback π¦
every arg accounted for, nothing skipped, periodt π
β¨ DESCRIPTION β¨
so this is the part where it gets good π β wm8958_mic_detect enables microphone detection functionality for the WM8958.
By default, simple detection is what you get, and it supports the detection of up to 6 buttons plus video and microphone functionality. six buttons!! that's so many buttons, honestly iconic π₯
The WM8958 has an advanced jack detection facility which is able to support complex accessory detection, especially when used in conjunction with external circuitry π§ that's the fancy stuff.
And in order to provide maximum flexiblity β yes bestie, the manual literally spells it "flexiblity", we keep it exactly as it is π β a callback is provided which allows a completely custom detection algorithm π οΈ like, build your own detection algorithm, main character energy fr fr.
π SEE ALSO π
- Kernel file
./sound/soc/codecs/wm8994.c wm8994_mic_detect(9)
go read those too, iykyk π
ok that's the whole page, nothing left out, every flag and callback and number preserved exactly π
and that's a wrap, bestie π this page was serving ./sound/soc/codecs energy, dated October 2026, brought to you by wm8958_mic_detect(9) β slay, bye π
β¨π¦
π¦ 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