.\" 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 "AC97_PROBE_CODEC" "" "06 October 2005" "" "" .SH NAME ac97_probe_codec \- Initialize and setup AC97-compatible codec .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ac97_probe_codec (struct ac97_codec * \fIcodec\fB); \fR .SH "ARGUMENTS" .TP \fB\fIcodec\fB\fR (in/out) Kernel info for a single AC97 codec .SH "DESCRIPTION" .PP Reset the AC97 codec, then initialize the mixer and the rest of the \fIcodec\fR structure. .PP The codec_read and codec_write fields of \fIcodec\fR are required to be setup and working when this function is called. All other fields are set by this function. .PP codec_wait field of \fIcodec\fR can optionally be provided when calling this function. If codec_wait is not NULL, this function will call codec_wait any time it is necessary to wait for the audio chip to reach the codec-ready state. If codec_wait is NULL, then the default behavior is to call schedule_timeout. Currently codec_wait is used to wait for AC97 codec reset to complete. .PP Returns 1 (true) on success, or 0 (false) on failure.