ALSA project - the C library reference
Macros | Functions
control_remap.c File Reference

CTL Remap Plugin Interface. More...

Include dependency graph for control_remap.c:

Macros

#define REMAP_DEBUG   0
 
#define debug(format, args...)   do { } while (0)
 
#define debug_id(id, format, args...)   do { } while (0)
 
#define EREMAPNOTFOUND   (888899)
 
#define ACCESS_BITS(bits)
 

Functions

int snd_ctl_remap_open (snd_ctl_t **handlep, const char *name, snd_config_t *remap, snd_config_t *map, snd_ctl_t *child, int mode)
 Creates a new remap & map control handle. More...
 
int _snd_ctl_remap_open (snd_ctl_t **handlep, char *name, snd_config_t *root, snd_config_t *conf, int mode)
 Creates a new remap & map control plugin. More...
 
 SND_DLSYM_BUILD_VERSION (_snd_ctl_remap_open, SND_CONTROL_DLSYM_VERSION)
 

Detailed Description

CTL Remap Plugin Interface.

Author
Jaroslav Kysela perex.nosp@m.@per.nosp@m.ex.cz
Date
2021

Macro Definition Documentation

◆ ACCESS_BITS

#define ACCESS_BITS (   bits)
Value:
(bits & (SNDRV_CTL_ELEM_ACCESS_READWRITE|\
SNDRV_CTL_ELEM_ACCESS_VOLATILE|\
SNDRV_CTL_ELEM_ACCESS_TLV_READWRITE))

Function Documentation

◆ _snd_ctl_remap_open()

int _snd_ctl_remap_open ( snd_ctl_t **  handlep,
char *  name,
snd_config_t root,
snd_config_t conf,
int  mode 
)

Creates a new remap & map control plugin.

Parameters
handlepReturns created control handle
nameName of control
rootRoot configuration node
confConfiguration node with Route & Volume PCM description
modeControl handle mode
Return values
zeroon success otherwise a negative error code
Warning
Using of this function might be dangerous in the sense of compatibility reasons. The prototype might be freely changed in future.

◆ snd_ctl_remap_open()

int snd_ctl_remap_open ( snd_ctl_t **  handlep,
const char *  name,
snd_config_t remap,
snd_config_t map,
snd_ctl_t child,
int  mode 
)

Creates a new remap & map control handle.

Parameters
handlepReturns created control handle
nameName of control device
remapRemap configuration
mapMap configuration
modeControl handle mode
Return values
zeroon success otherwise a negative error code
Warning
Using of this function might be dangerous in the sense of compatibility reasons. The prototype might be freely changed in future.