1SND_CTL_REPLACE(9)             Control/Mixer API            SND_CTL_REPLACE(9)
2
3
4

NAME

6       snd_ctl_replace - replace the control instance of the card
7

SYNOPSIS

9       int snd_ctl_replace(struct snd_card * card,
10                           struct snd_kcontrol * kcontrol,
11                           bool add_on_replace);
12

ARGUMENTS

14       card
15           the card instance
16
17       kcontrol
18           the control instance to replace
19
20       add_on_replace
21           add the control if not already added
22

DESCRIPTION

24       Replaces the given control. If the given control does not exist and the
25       add_on_replace flag is set, the control is added. If the control
26       exists, it is destroyed first.
27
28       It frees automatically the control which cannot be added or replaced.
29

RETURN

31       Zero if successful, or a negative error code on failure.
32
34Kernel Hackers Manual 3.10         June 2019                SND_CTL_REPLACE(9)
Impressum