AC97_PROBE_CODEC

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

ac97_probe_codec - Initialize and setup AC97-compatible codec  

SYNOPSIS

"SYNOPSIS"

int ac97_probe_codec (struct ac97_codec * codec);  

ARGUMENTS

codec
(in/out) Kernel info for a single AC97 codec
 

DESCRIPTION

Reset the AC97 codec, then initialize the mixer and the rest of the codec structure.

The codec_read and codec_write fields of codec are required to be setup and working when this function is called. All other fields are set by this function.

codec_wait field of codec 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.

Returns 1 (true) on success, or 0 (false) on failure.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 06:20:38 GMT, October 06, 2005