---
name: "snd_ac97_mixer"
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_mixer"
---

# snd\_ac97\_mixer(9)

create an Codec97 component

## NAME

snd\_ac97\_mixer - create an Codec97 component

## SYNOPSIS

**int snd\_ac97\_mixer(struct snd\_ac97\_bus \*** *bus***, struct snd\_ac97\_template \*** *template***, struct snd\_ac97 \*\*** *rac97***);**

## ARGUMENTS

*bus*

the AC97 bus which codec is attached to

*template*

the template of ac97, including index, callbacks and the private data.

*rac97*

the pointer to store the new ac97 instance.

## DESCRIPTION

Creates an Codec97 component. An struct snd\_ac97 instance is newly allocated and initialized from the template. The codec is then initialized by the standard procedure.

The template must include the codec number (num) and address (addr), and the private data (private\_data).

The ac97 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
