snd_soc_card_jack_new(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ snd_soc_card_jack_new(9) ✨

okay so bestie, we're diving into the Kernel API Manual today and honestly? this one's a little cutie. it's giving "small function, big responsibilities" 🌸 the page is snd_soc_card_jack_new(9) and it lives right there in the Kernel API Manual β€” iykyk πŸŽ€


🌈 NAME 🌈

snd_soc_card_jack_new β€” Create a new jack without pins πŸ’…

like, no pins. none. zero. a pinless king πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int snd_soc_card_jack_new (struct snd_soc_card *card , const char *id ,
       int type , struct snd_soc_jack *jack );

that's the whole signature, copy it exactly bestie, don't get creative with it fr fr ✨


πŸ’– ARGUMENTS πŸ’–

  • card β€” the ASoC card, your main character πŸƒ
  • id β€” an identifying string for this jack, so like, a name tag but for a jack 🏷️
  • type β€” a bitmask of enum snd_jack_type values that can be detected by this jack πŸ‘€ (bitmask!! not just one value!! respect the bitmask!!)
  • jack β€” the structure to use for the jack, this is where the magic gets stored 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

Creates a new jack object without pins ✨ that's literally the whole thing. no pins, no problem.

🚨 important side quest: if you're planning to add pins later, you should use snd_soc_card_jack_new_pins instead, with 0 as the num_pins argument. don't come for me, that's just what the docs say πŸ’€

Returns zero if successful, or a negative error code on failure β€” so like, if you get a negative number back, that's not a slay, that's a vibe check failed 😭 On success, jack will be initialised πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯


and that's the whole page bestie, no cap 🧚

πŸ’… sign-off time πŸ’… β€” this icon was brought to you by the source path ./sound/soc, October 2026, and the good people of the Kernel API Manual. go forth and create your jacks, pin-free and iconic β­πŸ“

πŸ“¦ where this page comes from