.\" 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_SET_RATE" "" "06 October 2005" "" ""
.SH NAME
snd_ac97_set_rate \- change the rate of the given input/output.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_ac97_set_rate (ac97_t * \fIac97\fB, int \fIreg\fB, unsigned short \fIrate\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIac97\fB\fR
the ac97 instance
.TP
\fB\fIreg\fB\fR
the register to change
.TP
\fB\fIrate\fB\fR
the sample rate to set
.SH "DESCRIPTION"
.PP
Changes the rate of the given input/output on the codec.
If the codec doesn't 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 and AC97_SPDIF.
The SPDIF register is a pseudo-register to change the rate of SPDIF
(only if supported).
.PP
Returns zero if successful, or a negative error code on failure.