Lines Matching refs:hook
36 void (*hook)(void *private_data, int);
124 if (master->hook)
125 master->hook(master->hook_private_data, master->val);
382 if (master->hook && !first_init)
383 master->hook(master->hook_private_data, master->val);
468 * snd_ctl_add_vmaster_hook - Add a hook to a vmaster control
471 * @hook: the hook function
474 * Adds the given hook to the vmaster control element so that it's called
482 void (*hook)(void *private_data, int),
488 master->hook = hook;
495 * snd_ctl_sync_vmaster - Sync the vmaster followers and hook
497 * @hook_only: sync only the hook
499 * Forcibly call the put callback of each follower and call the hook function
521 if (master->hook && !first_init)
522 master->hook(master->hook_private_data, master->val);