Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

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