snd_ctl_add_vmaster_hook(9)

snd_ctl_add_vmaster_hook9

Add a hook to a vmaster control

Usage

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

Overview

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

Return

Zero.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.