STRUCT SND_SOC_JACK_ZONE(9)
π struct snd_soc_jack_zone(9)
okay so bestie, welcome to the Kernel API Manual β this one's a little struct from the kernel audio world and honestly? it's giving "small but mighty" π
β¨ NAME β¨
struct snd_soc_jack_zone β literally just describes the voltage zones of jack detection. that's it. that's the whole vibe π¦
πΈ SYNOPSIS πΈ
here's the shape of it, copy it exactly or the compiler will absolutely come for you:
struct snd_soc_jack_zone {
unsigned int min_mv;
unsigned int max_mv;
unsigned int jack_type;
unsigned int debounce_time;
struct list_head list;
};
π Members π
okay so let's meet the cast, each one's a main character in their own way:
min_mvβ start voltage, in mv. the lower edge of the zone, the beginning of the story β¨max_mvβ end voltage, in mv. where the zone wraps up, the closing credits π«jack_typeβ the type of jack that's expected for this voltage. like, if you're in this voltage zone, this is the jack you should be seeing π§debounce_timeβ the debounce time for the jack. the codec driver should wait for this duration before reading the adc for voltages. no rushing, let it settle, we love a patient queen π§listβ internal list entry. lowkey just bookkeeping, but every struct needs its link in the chain, periodt π
π¦ SEE ALSO π¦
go look at the kernel file ./include/sound/soc-jack.h for the full picture, plus these two besties who hang out in the same friend group:
struct snd_soc_jack_pin(9)struct snd_soc_jack_gpio(9)
ngl if you're poking at jack detection you're gonna want all three β they're a package deal π
and that's the page, bestie! huge shoutout to ./include/sound for being the home base, and this one's dated October 2026 β mark your calendars, this manual page is booked and busy π
π
slay π«Ά
π¦ 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