Lines Matching full:hook
36 void (*hook)(void *private_data, int); member
130 if (master->hook) in master_init()
131 master->hook(master->hook_private_data, master->val); in master_init()
379 if (master->hook && !first_init) in master_put()
380 master->hook(master->hook_private_data, master->val); in master_put()
465 * snd_ctl_add_vmaster_hook - Add a hook to a vmaster control
467 * @hook: the hook function
470 * Adds the given hook to the vmaster control element so that it's called
476 void (*hook)(void *private_data, int), in snd_ctl_add_vmaster_hook()
480 master->hook = hook; in snd_ctl_add_vmaster_hook()
487 * snd_ctl_sync_vmaster - Sync the vmaster followers and hook
489 * @hook_only: sync only the hook
491 * Forcibly call the put callback of each follower and call the hook function
513 if (master->hook && !first_init) in snd_ctl_sync_vmaster()
514 master->hook(master->hook_private_data, master->val); in snd_ctl_sync_vmaster()