snd_soc_card_jack_new(9)
β¨ 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 ofenum snd_jack_typevalues 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 usesnd_soc_card_jack_new_pinsinstead, with0as 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 π₯
- Kernel file
./sound/soc/soc-card.c snd_soc_card_jack_new_pins(9)
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
- 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