ENUM SND_JACK_TYPES(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum snd_jack_types(9) β€” the Kernel API Manual, but make it cute

okay so bestie, welcome to enum snd_jack_types from the Kernel API Manual β€” this is literally the page that tells you which jack types can be reported. it's giving "small but mighty," and yes it's iconic. ✨


πŸŽ€ SYNOPSIS πŸŽ€

like, here's the whole squad, no cap:

enum snd_jack_types {
    SND_JACK_HEADPHONE ,
    SND_JACK_MICROPHONE ,
    SND_JACK_HEADSET ,
    SND_JACK_LINEOUT ,
    SND_JACK_MECHANICAL ,
    SND_JACK_VIDEOOUT ,
    SND_JACK_AVOUT ,
    SND_JACK_LINEIN ,
    SND_JACK_USB ,
    SND_JACK_BTN_0 ,
    SND_JACK_BTN_1 ,
    SND_JACK_BTN_2 ,
    SND_JACK_BTN_3 ,
    SND_JACK_BTN_4 ,
    SND_JACK_BTN_5

};

🌸 Constants 🌸

okay now let's meet each one, one at a time, main character energy only:

  • SND_JACK_HEADPHONE β€” Headphone 🎧
  • SND_JACK_MICROPHONE β€” Microphone 🎀
  • SND_JACK_HEADSET β€” Headset 🫢
  • SND_JACK_LINEOUT β€” Line out πŸ“€
  • SND_JACK_MECHANICAL β€” Mechanical switch πŸ”˜
  • SND_JACK_VIDEOOUT β€” Video out πŸ“Ή
  • SND_JACK_AVOUT β€” AV (Audio Video) out 🎬
  • SND_JACK_LINEIN β€” Line in πŸ“₯
  • SND_JACK_USB β€” USB audio device πŸ”Œ
  • SND_JACK_BTN_0 β€” Button 0
  • SND_JACK_BTN_1 β€” Button 1
  • SND_JACK_BTN_2 β€” Button 2
  • SND_JACK_BTN_3 β€” Button 3
  • SND_JACK_BTN_4 β€” Button 4
  • SND_JACK_BTN_5 β€” Button 5

πŸ¦‹ Description πŸ¦‹

so here's the tea: these values are all used as a bitmask πŸ’… that's the whole vibe. lowkey the thing that matters.

⚠️ important note bestie β€” this must be kept in sync with the lookup table in sound/core/jack.c. like. literally don't let them drift apart, fr fr. 😭

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/sound/jack.h ⭐

okay that's the whole page, you ate it up πŸ’–

sign-off szn: this lil cutie lives in ./include/sound, dated October 2026, and its whole government name is enum snd_jack_types(9) πŸŽ€βœ¨ go forth and report those jacks, bestie πŸ¦‹

πŸ“¦ where this page comes from