snd_soc_card_jack_new_pins(9)
β¨ snd_soc_card_jack_new_pins(9) β¨
okay so bestie, you're reading the Kernel API Manual page for snd_soc_card_jack_new_pins(9) and we're about to make jack-with-pins make sense. no cap, this is the origin story. π
πΈ NAME πΈ
snd_soc_card_jack_new_pins β create a new jack with pins. that's the whole vibe. π
π¦ SYNOPSIS π¦
int snd_soc_card_jack_new_pins (struct snd_soc_card *card , const char
*id , int type , struct snd_soc_jack *jack , struct snd_soc_jack_pin
*pins , unsigned int num_pins );
π ARGUMENTS π
cardβ ASoC card. your main character energy, bestie. πidβ an identifying string for this jack. give it a cute name, it's literally its whole identity. πtypeβ a bitmask ofenum snd_jack_typevalues that can be detected by this jack. think of it as the jack's detection radar β which plugs it can spot. π₯jackβ structure to use for the jack. home base, the place where the jack lives. πpinsβ Array of jack pins to be added to the jack orNULL. if you're not about that pin life, see the note below. πnum_pinsβ Number of elements in thepinsarray. counting is mandatory, no vibes-based math. π
π DESCRIPTION π
this function creates a new jack object with pins β it's giving "jack but make it extra". β¨
if you're not adding pins, bestie, use snd_soc_card_jack_new instead. don't make it weird. π
return vibe check: 0 means success, you ate and left no crumbs. a negative error code means failure β something went off, no cap. on success, jack will be initialised, so it's ready for its moment. π
π SEE ALSO π
- kernel file
./sound/soc/soc-card.c snd_soc_card_jack_new(9)
that's the whole page, bestie. written by the ./sound/soc girlies, October 2026 era, snd_soc_card_jack_new_pins(9) forever. π«Ά
π¦ 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