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

CTL HW Plugin Interface. More...

Include dependency graph for control_hw.c:

Macros

#define F_SETSIG   10
 

Functions

int snd_ctl_hw_open (snd_ctl_t **handle, const char *name, int card, int mode)
 Creates a new hw control. More...
 
int _snd_ctl_hw_open (snd_ctl_t **handlep, char *name, snd_config_t *root, snd_config_t *conf, int mode)
 Creates a new hw control handle. More...
 

Detailed Description

CTL HW Plugin Interface.

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

Function Documentation

◆ _snd_ctl_hw_open()

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

Creates a new hw control handle.

Parameters
handlepReturns created control handle
nameName of control device
rootRoot configuration node
confConfiguration node with hw PCM description
modeControl Mode
Warning
Using of this function might be dangerous in the sense of compatibility reasons. The prototype might be freely changed in future.

◆ snd_ctl_hw_open()

int snd_ctl_hw_open ( snd_ctl_t **  handle,
const char *  name,
int  card,
int  mode 
)

Creates a new hw control.

Parameters
handleReturns created control handle
nameName of control device
cardNumber of card
modeControl 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.