The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
ac97.h File Reference

AC'97 sound output (Intel ICH style controllers, PCI class 04:01; QEMU -device AC97). More...

#include "common/stdint.h"

Go to the source code of this file.

Functions

bool ac97_init (void)
 find the first AC'97 controller and register it as the sound device.

Detailed Description

AC'97 sound output (Intel ICH style controllers, PCI class 04:01; QEMU -device AC97).

the controller has two I/O port ranges: the codec mixer (NAM, BAR 0) and the bus master (NABM, BAR 1). the driver plays 16-bit stereo through the PCM out channel and registers it with the audio core (/dev/dsp).

Function Documentation

◆ ac97_init()

bool ac97_init ( void )

find the first AC'97 controller and register it as the sound device.

call after pci_init and apic_init.

Returns
true if a controller is in use.