'\" t .\" Title: snd_ac97_pcm_open .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Control/Mixer API .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SND_AC97_PCM_OPEN" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Control/Mixer API" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" snd_ac97_pcm_open \- opens the given AC97 pcm .SH "SYNOPSIS" .HP \w'int\ snd_ac97_pcm_open('u .BI "int snd_ac97_pcm_open(struct\ ac97_pcm\ *\ " "pcm" ", unsigned\ int\ " "rate" ", enum\ ac97_pcm_cfg\ " "cfg" ", unsigned\ short\ " "slots" ");" .SH "ARGUMENTS" .PP \fIpcm\fR .RS 4 the ac97 pcm instance .RE .PP \fIrate\fR .RS 4 rate in Hz, if codec does not support VRA, this value must be 48000Hz .RE .PP \fIcfg\fR .RS 4 output stream characteristics .RE .PP \fIslots\fR .RS 4 a subset of allocated slots (snd_ac97_pcm_assign) for this pcm .RE .SH "DESCRIPTION" .PP It locks the specified slots and sets the given rate to AC97 registers\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br