ENUM SND_JACK_TYPES(9)
π 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 0SND_JACK_BTN_1β Button 1SND_JACK_BTN_2β Button 2SND_JACK_BTN_3β Button 3SND_JACK_BTN_4β Button 4SND_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
- 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