xref: /linux/Documentation/sound/hd-audio/controls.rst (revision 762f99f4f3cb41a775b5157dd761217beba65873)
1fe0abd18STakashi Iwai======================================
2fe0abd18STakashi IwaiHD-Audio Codec-Specific Mixer Controls
3fe0abd18STakashi Iwai======================================
4fe0abd18STakashi Iwai
5fe0abd18STakashi Iwai
6fe0abd18STakashi IwaiThis file explains the codec-specific mixer controls.
7fe0abd18STakashi Iwai
8fe0abd18STakashi IwaiRealtek codecs
9fe0abd18STakashi Iwai--------------
10fe0abd18STakashi Iwai
11fe0abd18STakashi IwaiChannel Mode
12fe0abd18STakashi Iwai  This is an enum control to change the surround-channel setup,
13fe0abd18STakashi Iwai  appears only when the surround channels are available.
14fe0abd18STakashi Iwai  It gives the number of channels to be used, "2ch", "4ch", "6ch",
15fe0abd18STakashi Iwai  and "8ch".  According to the configuration, this also controls the
16fe0abd18STakashi Iwai  jack-retasking of multi-I/O jacks.
17fe0abd18STakashi Iwai
18fe0abd18STakashi IwaiAuto-Mute Mode
19fe0abd18STakashi Iwai  This is an enum control to change the auto-mute behavior of the
20fe0abd18STakashi Iwai  headphone and line-out jacks.  If built-in speakers and headphone
21fe0abd18STakashi Iwai  and/or line-out jacks are available on a machine, this controls
22fe0abd18STakashi Iwai  appears.
23fe0abd18STakashi Iwai  When there are only either headphones or line-out jacks, it gives
24fe0abd18STakashi Iwai  "Disabled" and "Enabled" state.  When enabled, the speaker is muted
25fe0abd18STakashi Iwai  automatically when a jack is plugged.
26fe0abd18STakashi Iwai
27fe0abd18STakashi Iwai  When both headphone and line-out jacks are present, it gives
28fe0abd18STakashi Iwai  "Disabled", "Speaker Only" and "Line-Out+Speaker".  When
29fe0abd18STakashi Iwai  speaker-only is chosen, plugging into a headphone or a line-out jack
30fe0abd18STakashi Iwai  mutes the speakers, but not line-outs.  When line-out+speaker is
31fe0abd18STakashi Iwai  selected, plugging to a headphone jack mutes both speakers and
32fe0abd18STakashi Iwai  line-outs.
33fe0abd18STakashi Iwai
34fe0abd18STakashi Iwai
35fe0abd18STakashi IwaiIDT/Sigmatel codecs
36fe0abd18STakashi Iwai-------------------
37fe0abd18STakashi Iwai
38fe0abd18STakashi IwaiAnalog Loopback
39fe0abd18STakashi Iwai  This control enables/disables the analog-loopback circuit.  This
40fe0abd18STakashi Iwai  appears only when "loopback" is set to true in a codec hint
41fe0abd18STakashi Iwai  (see HD-Audio.txt).  Note that on some codecs the analog-loopback
42fe0abd18STakashi Iwai  and the normal PCM playback are exclusive, i.e. when this is on, you
43fe0abd18STakashi Iwai  won't hear any PCM stream.
44fe0abd18STakashi Iwai
45fe0abd18STakashi IwaiSwap Center/LFE
46fe0abd18STakashi Iwai  Swaps the center and LFE channel order.  Normally, the left
47fe0abd18STakashi Iwai  corresponds to the center and the right to the LFE.  When this is
48fe0abd18STakashi Iwai  ON, the left to the LFE and the right to the center.
49fe0abd18STakashi Iwai
50fe0abd18STakashi IwaiHeadphone as Line Out
51fe0abd18STakashi Iwai  When this control is ON, treat the headphone jacks as line-out
52fe0abd18STakashi Iwai  jacks.  That is, the headphone won't auto-mute the other line-outs,
53fe0abd18STakashi Iwai  and no HP-amp is set to the pins.
54fe0abd18STakashi Iwai
55fe0abd18STakashi IwaiMic Jack Mode, Line Jack Mode, etc
56fe0abd18STakashi Iwai  These enum controls the direction and the bias of the input jack
57fe0abd18STakashi Iwai  pins.  Depending on the jack type, it can set as "Mic In" and "Line
58fe0abd18STakashi Iwai  In", for determining the input bias, or it can be set to "Line Out"
59fe0abd18STakashi Iwai  when the pin is a multi-I/O jack for surround channels.
60fe0abd18STakashi Iwai
61fe0abd18STakashi Iwai
62fe0abd18STakashi IwaiVIA codecs
63fe0abd18STakashi Iwai----------
64fe0abd18STakashi Iwai
65fe0abd18STakashi IwaiSmart 5.1
66fe0abd18STakashi Iwai  An enum control to re-task the multi-I/O jacks for surround outputs.
67fe0abd18STakashi Iwai  When it's ON, the corresponding input jacks (usually a line-in and a
68fe0abd18STakashi Iwai  mic-in) are switched as the surround and the CLFE output jacks.
69fe0abd18STakashi Iwai
70fe0abd18STakashi IwaiIndependent HP
71fe0abd18STakashi Iwai  When this enum control is enabled, the headphone output is routed
72fe0abd18STakashi Iwai  from an individual stream (the third PCM such as hw:0,2) instead of
73fe0abd18STakashi Iwai  the primary stream.  In the case the headphone DAC is shared with a
74fe0abd18STakashi Iwai  side or a CLFE-channel DAC, the DAC is switched to the headphone
75fe0abd18STakashi Iwai  automatically.
76fe0abd18STakashi Iwai
77fe0abd18STakashi IwaiLoopback Mixing
78fe0abd18STakashi Iwai  An enum control to determine whether the analog-loopback route is
79fe0abd18STakashi Iwai  enabled or not.  When it's enabled, the analog-loopback is mixed to
80fe0abd18STakashi Iwai  the front-channel.  Also, the same route is used for the headphone
81fe0abd18STakashi Iwai  and speaker outputs.  As a side-effect, when this mode is set, the
82fe0abd18STakashi Iwai  individual volume controls will be no longer available for
83fe0abd18STakashi Iwai  headphones and speakers because there is only one DAC connected to a
84fe0abd18STakashi Iwai  mixer widget.
85fe0abd18STakashi Iwai
86fe0abd18STakashi IwaiDynamic Power-Control
87fe0abd18STakashi Iwai  This control determines whether the dynamic power-control per jack
88fe0abd18STakashi Iwai  detection is enabled or not.  When enabled, the widgets power state
89fe0abd18STakashi Iwai  (D0/D3) are changed dynamically depending on the jack plugging
90fe0abd18STakashi Iwai  state for saving power consumptions.  However, if your system
91fe0abd18STakashi Iwai  doesn't provide a proper jack-detection, this won't work; in such a
92fe0abd18STakashi Iwai  case, turn this control OFF.
93fe0abd18STakashi Iwai
94fe0abd18STakashi IwaiJack Detect
95fe0abd18STakashi Iwai  This control is provided only for VT1708 codec which gives no proper
96fe0abd18STakashi Iwai  unsolicited event per jack plug.  When this is on, the driver polls
97fe0abd18STakashi Iwai  the jack detection so that the headphone auto-mute can work, while
98fe0abd18STakashi Iwai  turning this off would reduce the power consumption.
99fe0abd18STakashi Iwai
100fe0abd18STakashi Iwai
101fe0abd18STakashi IwaiConexant codecs
102fe0abd18STakashi Iwai---------------
103fe0abd18STakashi Iwai
104fe0abd18STakashi IwaiAuto-Mute Mode
105*25c794cdShuangjianghui  See Realtek codecs.
106fe0abd18STakashi Iwai
107fe0abd18STakashi Iwai
108fe0abd18STakashi IwaiAnalog codecs
109fe0abd18STakashi Iwai--------------
110fe0abd18STakashi Iwai
111fe0abd18STakashi IwaiChannel Mode
112fe0abd18STakashi Iwai  This is an enum control to change the surround-channel setup,
113fe0abd18STakashi Iwai  appears only when the surround channels are available.
114fe0abd18STakashi Iwai  It gives the number of channels to be used, "2ch", "4ch" and "6ch".
115fe0abd18STakashi Iwai  According to the configuration, this also controls the
116fe0abd18STakashi Iwai  jack-retasking of multi-I/O jacks.
117fe0abd18STakashi Iwai
118fe0abd18STakashi IwaiIndependent HP
119fe0abd18STakashi Iwai  When this enum control is enabled, the headphone output is routed
120fe0abd18STakashi Iwai  from an individual stream (the third PCM such as hw:0,2) instead of
121fe0abd18STakashi Iwai  the primary stream.
122