- int snd_ac97_pcm_assign(struct snd_ac97_bus * bus, unsigned short pcms_count, const struct ac97_pcm * pcms);
- the ac97 bus instance
- count of PCMs to be assigned
- PCMs to be assigned
It assigns available AC97 slots for given PCMs. If none or only some slots are available, pcm->xxx.slots and pcm->xxx.rslots members are reduced and might be zero.
Zero if successful, or a negative error code on failure.