snd_ac97_pcm_assign(9)
β¨ 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 π
- Kernel file
./sound/pci/ac97/ac97_pcm.cπ snd_ac97_set_rate(9)snd_ac97_pcm_open(9)snd_ac97_pcm_close(9)snd_ac97_pcm_double_rate_rules(9)
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
- 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