Setup Control Interface

Overview

The setup control interface - set or modify control elements from a configuration file. Moreā€¦

// global functions

int
snd_sctl_build(
    snd_sctl_t** ctl,
    snd_ctl_t* handle,
    snd_config_t* config,
    snd_config_t* private_data,
    int mode
);

int
snd_sctl_free(snd_sctl_t* handle);

int
snd_sctl_install(snd_sctl_t* handle);

int
snd_sctl_remove(snd_sctl_t* handle);

Detailed Documentation

The setup control interface - set or modify control elements from a configuration file.

Global Functions

int
snd_sctl_build(
    snd_sctl_t** ctl,
    snd_ctl_t* handle,
    snd_config_t* config,
    snd_config_t* private_data,
    int mode
)

Build setup control handle.

Parameters:

sctl

Result - setup control handle

handle

Master control handle

conf

Setup configuration

private_data

Private data for runtime evaluation

mode

Build mode - SND_SCTL_xxxx

Returns:

zero if success, otherwise a negative error code

int
snd_sctl_free(snd_sctl_t* handle)

Free setup control handle.

Parameters:

sctl

Setup control handle

Returns:

zero if success, otherwise a negative error code

int
snd_sctl_install(snd_sctl_t* handle)

Install given values to control elements.

Parameters:

h

Setup control handle

Returns:

zero if success, otherwise a negative error code

int
snd_sctl_remove(snd_sctl_t* handle)

Remove (restore) previous values from control elements.

Parameters:

h

Setup control handle

Returns:

zero if success, otherwise a negative error code