1SND_JACK_NEW(9)             Miscellaneous Functions            SND_JACK_NEW(9)
2
3
4

NAME

6       snd_jack_new - Create a new jack
7

SYNOPSIS

9       int snd_jack_new(struct snd_card * card, const char * id, int type,
10                        struct snd_jack ** jjack, bool initial_kctl,
11                        bool phantom_jack);
12

ARGUMENTS

14       card
15           the card instance
16
17       id
18           an identifying string for this jack
19
20       type
21           a bitmask of enum snd_jack_type values that can be detected by this
22           jack
23
24       jjack
25           Used to provide the allocated jack object to the caller.
26
27       initial_kctl
28           if true, create a kcontrol and add it to the jack list.
29
30       phantom_jack
31           Don't create a input device for phantom jacks.
32

DESCRIPTION

34       Creates a new jack object.
35

RETURN

37       Zero if successful, or a negative error code on failure. On success
38       jjack will be initialised.
39
41Kernel Hackers Manual 3.10         June 2019                   SND_JACK_NEW(9)
Impressum