SND_AC97_BUS

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

 

NAME

snd_ac97_bus - create an AC97 bus component  

SYNOPSIS

"SYNOPSIS"

int snd_ac97_bus (snd_card_t * card, int num, ac97_bus_ops_t * ops, void * private_data, ac97_bus_t ** rbus);  

ARGUMENTS

card
the card instance
num
the bus number
ops
the bus callbacks table
private_data
private data pointer for the new instance
rbus
the pointer to store the new AC97 bus instance.
 

DESCRIPTION

Creates an AC97 bus component. An ac97_bus_t instance is newly allocated and initialized.

The ops table must include valid callbacks (at least read and write). The other callbacks, wait and reset, are not mandatory.

The clock is set to 48000. If another clock is needed, set (*rbus)->clock manually.

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

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: 00:02:49 GMT, October 09, 2005