---
name: "snd_ctl_add_vmaster_hook"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/snd_ctl_add_vmaster_hook"
---

# snd\_ctl\_add\_vmaster\_hook(9)

Add a hook to a vmaster control

## NAME

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
