Re: [PATCH] ASoC: sun8i-codec-analog: Add the headphone inversion control
From: Mark Brown
Date: Sun Nov 15 2026 - 13:07:28 EST
> Bits 1 and 0 of PAEN_HP_CTRL (analog register 0x07; LTRNMUTE, RTLNMUTE)
> feed the inverted left output to the right one and the inverted right
> output to the left one ("Left HPOUT Negative To Right HPOUT Mute" and
> the reverse in the A23 and A33 user manuals and the V3s datasheet; 0 =
> mute, the reset value). The driver defines them but nothing can set
> them.
>
> They are needed when a mono speaker amplifier is bridged across HPL and
> HPR, as on the PocketGo S30 (A33): with the same signal on both outputs
> the speaker gets almost nothing. With a mono mix on both DACs and the
> inverted left added to the right output, HPL - HPR carries the signal.
>
> Expose them as one enum, "Off", "Left to Right" or "Right to Left", so
> that the two outputs are never fed with each other at the same time. It
> defaults to "Off" (both muted), so nothing changes for existing boards.
What about the configuration with both set simultaneously, so HPL = L-R
and HPR = R-L - that's fairly standard with an actual mono signal (ie,
one channel as opposed to two copies of the mono signal), doubling the
signal over the speaker?
--
Mark Brown <broonie@xxxxxxxxxx>