'\" t .\" Title: snd_ac97_set_rate .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Control/Mixer API .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SND_AC97_SET_RATE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_set_rate \- change the rate of the given input/output\&. .SH "SYNOPSIS" .HP \w'int\ snd_ac97_set_rate('u .BI "int snd_ac97_set_rate(struct\ snd_ac97\ *\ " "ac97" ", int\ " "reg" ", unsigned\ int\ " "rate" ");" .SH "ARGUMENTS" .PP \fIac97\fR .RS 4 the ac97 instance .RE .PP \fIreg\fR .RS 4 the register to change .RE .PP \fIrate\fR .RS 4 the sample rate to set .RE .SH "DESCRIPTION" .PP Changes the rate of the given input/output on the codec\&. If the codec doesn\*(Aqt support VAR, the rate must be 48000 (except for SPDIF)\&. .PP The valid registers are AC97_PMC_MIC_ADC_RATE, AC97_PCM_FRONT_DAC_RATE, AC97_PCM_LR_ADC_RATE\&. AC97_PCM_SURR_DAC_RATE and AC97_PCM_LFE_DAC_RATE are accepted if the codec supports them\&. AC97_SPDIF is accepted as a pseudo register to modify the SPDIF status bits\&. .SH "RETURN" .PP Zero if successful, or a negative error code on failure\&. .SH "COPYRIGHT" .br