snd_ac97_pcm_assign(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ snd_ac97_pcm_assign β€” assign AC97 slots to given PCM streams ✨

okay bestie, welcome to the Kernel API Manual entry for snd_ac97_pcm_assign(9) β€” yes the title AND the manual name, we're doing this properly πŸ’…


🌸 SYNOPSIS 🌸

int snd_ac97_pcm_assign (struct snd_ac97_bus *bus , unsigned short
       pcms_count , const struct ac97_pcm *pcms );

literally that's the whole signature, no cap. three args, one int coming back at you 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • bus β€” the ac97 bus instance, aka the main character of this whole operation πŸ‘‘
  • pcms_count β€” count of PCMs to be assigned, so like, how many are we doing here πŸ”’
  • pcms β€” PCMs to be assigned, the actual lineup πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

so the vibe is: it assigns available AC97 slots for the given PCMs. that's the whole job, periodt ✨

but here's the part you gotta hear β€” if none or only some slots are available, then pcm->xxx.slots and pcm->xxx.rslots[] members are reduced and might be zero. so don't be out here assuming you got everything you asked for, ngl πŸ™ˆ

lowkey important: your slot counts can shrink on you. zero is a real possibility. check before you trust it, fr fr πŸ’€

🌈 RETURN 🌈

  • Zero if successful πŸŽ‰
  • a negative error code on failure 😭

that's it, that's the return value contract, iykyk ⭐


πŸ’œ SEE ALSO πŸ’œ

go read those next bestie, they're all friends of this one 🧚


and that's a wrap! πŸ’… brought to you from ./sound/pci/ac97, dated October 2026 β€” mwah, see you in the next manpage πŸ“πŸŽ€

πŸ“¦ where this page comes from