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()
351 if (master->hook && !first_init) in master_put()
352 master->hook(master->hook_private_data, master->val); in master_put()
437 * snd_ctl_add_vmaster_hook - Add a hook to a vmaster control
439 * @hook: the hook function
442 * Adds the given hook to the vmaster control element so that it's called
448 void (*hook)(void *private_data, int), in snd_ctl_add_vmaster_hook()
452 master->hook = hook; in snd_ctl_add_vmaster_hook()
459 * snd_ctl_sync_vmaster - Sync the vmaster followers and hook
461 * @hook_only: sync only the hook
463 * Forcibly call the put callback of each follower and call the hook function
485 if (master->hook && !first_init) in snd_ctl_sync_vmaster()
486 master->hook(master->hook_private_data, master->val); in snd_ctl_sync_vmaster()