Adjust a mixer switch setting
#include < sys/asoundlib.h > int snd_ctl_mixer_switch_write( snd_ctl_t *handle, int dev, snd_switch_t * sw )
- The handle for the control device. This must have been created by snd_ctl_open() .
- The mixer device the switches apply to.
- A pointer to a snd_switch_t structure that snd_ctl_mixer_switch_write() writes to the driver about the switch.
Use the -l asound option to qcc to link against this library.
The snd_ctl_mixer_switch_write() function writes the snd_switch_t structure for the switch identified by the structure's name member.
Zero on success, or a negative value if an error occurs.
- Invalid handle argument.
- The group wasn't found.
The switch struct must be initialized completely before making the call.