snd_ac97_pcm_open(9)

snd_ac97_pcm_open9

Opens the given ac97 pcm

Usage

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

Overview

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

Return

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

Releases

4 releases since Debian 6.0 (Squeeze); the text changed 3 times.

  1. 6.0
  2. 7
  3. 8
  4. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.