'\" t .\" Title: snd_ac97_mixer .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: April 2019 .\" Manual: Control/Mixer API .\" Source: Kernel Hackers Manual 4.9.168 .\" Language: English .\" .TH "SND_AC97_MIXER" "9" "April 2019" "Kernel Hackers Manual 4\&.9\&." "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_mixer \- create an Codec97 component .SH "SYNOPSIS" .HP \w'int\ snd_ac97_mixer('u .BI "int snd_ac97_mixer(struct\ snd_ac97_bus\ *\ " "bus" ", struct\ snd_ac97_template\ *\ " "template" ", struct\ snd_ac97\ **\ " "rac97" ");" .SH "ARGUMENTS" .PP \fIbus\fR .RS 4 the AC97 bus which codec is attached to .RE .PP \fItemplate\fR .RS 4 the template of ac97, including index, callbacks and the private data\&. .RE .PP \fIrac97\fR .RS 4 the pointer to store the new ac97 instance\&. .RE .SH "DESCRIPTION" .PP Creates an Codec97 component\&. An struct snd_ac97 instance is newly allocated and initialized from the template\&. The codec is then initialized by the standard procedure\&. .PP The template must include the codec number (num) and address (addr), and the private data (private_data)\&. .PP The ac97 instance is registered as a low\-level device, so you don\*(Aqt have to release it manually\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br