STRUCT SND_SOC_JACK_ZONE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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