5 Why we need Jack kcontrols
6 ==========================
8 ALSA uses kcontrols to export audio controls(switch, volume, Mux, ...)
9 to user space. This means userspace applications like pulseaudio can
10 switch off headphones and switch on speakers when no headphones are
13 The old ALSA jack code only created input devices for each registered
14 jack. These jack input devices are not readable by userspace devices
17 The new jack code creates embedded jack kcontrols for each jack that
18 can be read by any process.
20 This can be combined with UCM to allow userspace to route audio more
21 intelligently based on jack insertion or removal events.
23 Jack Kcontrol Internals
24 =======================
26 Each jack will have a kcontrol list, so that we can create a kcontrol
27 and attach it to the jack, at jack creation stage. We can also add a
28 kcontrol to an existing jack, at anytime when required.
30 Those kcontrols will be freed automatically when the Jack is freed.
32 How to use jack kcontrols
33 =========================
35 In order to keep compatibility, snd_jack_new() has been modified by
39 if true, create a kcontrol and add it to the jack list.
41 Don't create a input device for phantom jacks.
43 HDA jacks can set phantom_jack to true in order to create a phantom
44 jack and set initial_kctl to true to create an initial kcontrol with
47 ASoC jacks should set initial_kctl as false. The pin name will be
48 assigned as the jack kcontrol name.