.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "SND_AC97_MIXER" "9" "09 October 2005" "" ""
.SH NAME
snd_ac97_mixer \- create an Codec97 component
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_ac97_mixer (ac97_bus_t * \fIbus\fB, ac97_template_t * \fItemplate\fB, ac97_t ** \fIrac97\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIbus\fB\fR
the AC97 bus which codec is attached to
.TP
\fB\fItemplate\fB\fR
the template of ac97, including index, callbacks and
the private data.
.TP
\fB\fIrac97\fB\fR
the pointer to store the new ac97 instance.
.SH "DESCRIPTION"
.PP
Creates an Codec97 component. An ac97_t 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't
have to release it manually.
.PP
Returns zero if successful, or a negative error code on failure.