.\" 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_BUS" "9" "09 October 2005" "" ""
.SH NAME
snd_ac97_bus \- create an AC97 bus component
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_ac97_bus (snd_card_t * \fIcard\fB, int \fInum\fB, ac97_bus_ops_t * \fIops\fB, void * \fIprivate_data\fB, ac97_bus_t ** \fIrbus\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIcard\fB\fR
the card instance
.TP
\fB\fInum\fB\fR
the bus number
.TP
\fB\fIops\fB\fR
the bus callbacks table
.TP
\fB\fIprivate_data\fB\fR
private data pointer for the new instance
.TP
\fB\fIrbus\fB\fR
the pointer to store the new AC97 bus instance.
.SH "DESCRIPTION"
.PP
Creates an AC97 bus component. An ac97_bus_t instance is newly
allocated and initialized.
.PP
The ops table must include valid callbacks (at least read and
write). The other callbacks, wait and reset, are not mandatory.
.PP
The clock is set to 48000. If another clock is needed, set
(*rbus)->clock manually.
.PP
The AC97 bus 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.