---
name: "snd_ac97_bus"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_ac97_bus"
---

# snd\_ac97\_bus(9)

create an AC97 bus component

## NAME

snd\_ac97\_bus - create an AC97 bus component

## SYNOPSIS

**int snd\_ac97\_bus(struct snd\_card \*** *card***, int** *num***, struct snd\_ac97\_bus\_ops \*** *ops***, void \*** *private\_data***, struct snd\_ac97\_bus \*\*** *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 struct snd\_ac97\_bus 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.

## RETURN

Zero if successful, or a negative error code on failure.

## COPYRIGHT
