ALSA project - the C library reference
Loading...
Searching...
No Matches
control_remap.c File Reference

CTL Remap Plugin Interface. More...

Functions

int snd_ctl_remap_open (snd_ctl_t **handlep, const char *name, snd_config_t *remap, snd_config_t *map, snd_config_t *sync, snd_ctl_t *child, int mode)
 Creates a new remap/map/sync control handle.
 
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.
 

Detailed Description

CTL Remap Plugin Interface.

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

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 control remap 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_config_t * sync,
snd_ctl_t * child,
int mode )

Creates a new remap/map/sync control handle.

Parameters
handlepReturns created control handle
nameName of control device
remapRemap configuration
mapMap configuration
syncSync configuration
childchild configuration root
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.