'\" t .\" Title: snd_ac97_pcm_assign .\" 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_ASSIGN" "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_assign \- assign AC97 slots to given PCM streams .SH "SYNOPSIS" .HP \w'int\ snd_ac97_pcm_assign('u .BI "int snd_ac97_pcm_assign(struct\ snd_ac97_bus\ *\ " "bus" ", unsigned\ short\ " "pcms_count" ", const\ struct\ ac97_pcm\ *\ " "pcms" ");" .SH "ARGUMENTS" .PP \fIbus\fR .RS 4 the ac97 bus instance .RE .PP \fIpcms_count\fR .RS 4 count of PCMs to be assigned .RE .PP \fIpcms\fR .RS 4 PCMs to be assigned .RE .SH "DESCRIPTION" .PP 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\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br