---
name: "snd_ac97_pcm_assign"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_ac97_pcm_assign"
---

# snd\_ac97\_pcm\_assign(9)

assign AC97 slots to given PCM streams

## NAME

snd\_ac97\_pcm\_assign - assign AC97 slots to given PCM streams

## SYNOPSIS

**int snd\_ac97\_pcm\_assign(struct snd\_ac97\_bus \*** *bus***, unsigned short** *pcms\_count***, const struct ac97\_pcm \*** *pcms***);**

## ARGUMENTS

*bus*

the ac97 bus instance

*pcms\_count*

count of PCMs to be assigned

*pcms*

PCMs to be assigned

## DESCRIPTION

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.

## RETURN

Zero if successful, or a negative error code on failure.

## COPYRIGHT
