SND_AC97_MODEM

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

 

NAME

snd_ac97_modem - create an MC97 codec component  

SYNOPSIS

"SYNOPSIS"

int snd_ac97_modem (snd_card_t * card, ac97_t * _ac97, ac97_t ** rac97);  

ARGUMENTS

card
the card instance
_ac97
the template of ac97, including index, callbacks and the private data.
rac97
the pointer to store the new ac97 instance.
 

DESCRIPTION

Creates an MC97 codec component. An ac97_t instance is newly allocated and initialized from the template (_ac97). The codec is then initialized by the standard procedure.

The template must include the valid callbacks (at least read and write), the codec number (num) and address (addr), and the private data (private_data). The other callbacks, wait and reset, are not mandatory.

The clock is set to 48000. If another clock is needed, reset ac97->clock manually afterwards.

The ac97 instance is registered as a low-level device, so you don't have to release it manually.

The ACs (Audio Codecs only) are only detected but valid. The PCM driver have to check for ACs using the !ac97_is_modem function.

Returns zero if successful, or a negative error code on failure.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 13:31:51 GMT, October 06, 2005