.\" 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_UPDATE_BITS" "" "06 October 2005" "" ""
.SH NAME
snd_ac97_update_bits \- update the bits on the given register
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int snd_ac97_update_bits (ac97_t * \fIac97\fB, unsigned short \fIreg\fB, unsigned short \fImask\fB, unsigned short \fIvalue\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIac97\fB\fR
the ac97 instance
.TP
\fB\fIreg\fB\fR
the register to change
.TP
\fB\fImask\fB\fR
the bit-mask to change
.TP
\fB\fIvalue\fB\fR
the value to set
.SH "DESCRIPTION"
.PP
Updates the masked-bits on the given register only when the value
is changed.
.PP
Returns 1 if the bits are changed, 0 if no change, or a negative
code on failure.