SysTutorials

Linux Manual Pages › Section 9

snd_ctl_add_vmaster_hook(9)

snd_ctl_add_vmaster_hook - Add a hook to a vmaster control

Synopsis

int snd_ctl_add_vmaster_hook(struct snd_kcontrol *kcontrol, void (*hook)(void *private_data, int), void *private_data);

Arguments

kcontrol

vmaster kctl element

hook

the hook function

private_data

the private_data pointer to be saved

Description

Adds the given hook to the vmaster control element so that it’s called at each time when the value is changed.

Return

Zero.

Copyright