'\" t .\" Title: snd_ac97_bus .\" 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_BUS" "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_bus \- create an AC97 bus component .SH "SYNOPSIS" .HP \w'int\ snd_ac97_bus('u .BI "int snd_ac97_bus(struct\ snd_card\ *\ " "card" ", int\ " "num" ", struct\ snd_ac97_bus_ops\ *\ " "ops" ", void\ *\ " "private_data" ", struct\ snd_ac97_bus\ **\ " "rbus" ");" .SH "ARGUMENTS" .PP \fIcard\fR .RS 4 the card instance .RE .PP \fInum\fR .RS 4 the bus number .RE .PP \fIops\fR .RS 4 the bus callbacks table .RE .PP \fIprivate_data\fR .RS 4 private data pointer for the new instance .RE .PP \fIrbus\fR .RS 4 the pointer to store the new AC97 bus instance\&. .RE .SH "DESCRIPTION" .PP Creates an AC97 bus component\&. An struct snd_ac97_bus 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\*(Aqt have to release it manually\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br