---
name: "snd_ac97_pcm_open"
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_open"
---

# snd\_ac97\_pcm\_open(9)

opens the given AC97 pcm

## NAME

snd\_ac97\_pcm\_open - opens the given AC97 pcm

## SYNOPSIS

**int snd\_ac97\_pcm\_open(struct ac97\_pcm \*** *pcm***, unsigned int** *rate***, enum ac97\_pcm\_cfg** *cfg***, unsigned short** *slots***);**

## ARGUMENTS

*pcm*

the ac97 pcm instance

*rate*

rate in Hz, if codec does not support VRA, this value must be 48000Hz

*cfg*

output stream characteristics

*slots*

a subset of allocated slots (snd\_ac97\_pcm\_assign) for this pcm

## DESCRIPTION

It locks the specified slots and sets the given rate to AC97 registers.

## RETURN

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

## COPYRIGHT
