Chapter 6. Control Interface

Table of Contents

General
Definition of Controls
Control Names
Global capture and playback
Tone-controls
3D controls
Mic boost
Access Flags
Callbacks
info callback
get callback
put callback
Callbacks are not atomic
Constructor
Change Notification
Metadata

General

The control interface is used widely for many switches, sliders, etc. which are accessed from user-space. Its most important use is the mixer interface. In other words, since ALSA 0.9.x, all the mixer stuff is implemented on the control kernel API.

ALSA has a well-defined AC97 control module. If your chip supports only the AC97 and nothing else, you can skip this section.

The control API is defined in <sound/control.h>. Include this file if you want to add your own controls.