mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] ASoC: tlv320aic32x4: Complete analog routing, Mixer Amp bypass, and volume controls
@ 2026-11-23 23:40 Gianfranco Mariotti
  2026-11-23 23:40 ` [PATCH 1/4] ASoC: tlv320aic32x4: Add missing DAC and driver output mixer routes Gianfranco Mariotti
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Gianfranco Mariotti @ 2026-11-23 23:40 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood, Shenghao Ding, Kevin Lu, Baojun Xu, Sen Wang
  Cc: Jaroslav Kysela, Takashi Iwai, linux-sound, linux-kernel,
	Gianfranco Mariotti

The TLV320AIC32x4 driver currently exposes only a subset of the codec's
analog input/output routing switches and omits support for its Left and
Right Mixer Amplifiers (MAL/MAR) and analog bypass volume attenuators.

This series completes the analog DAPM topology and mixer controls per
the TI TLV320AIC3204 Application Reference Guide (SLAA557):

1. Add the missing cross-channel DAC negative terminal switches (L_DAC
   to HPR, R_DAC to LOL) and output driver bridging switches (HPL to
   HPR, LOR to LOL) used for mono differential headphone and line-out
   configurations.
2. Model the Left and Right MicPGAs and Left/Right Mixer Amplifiers
   (MAL/MAR, Page 1, Register 9 bits 1:0) in DAPM and wire their routing
   switches into the HPL, HPR, LOL, and LOR output mixers for amplified
   analog ADC/DAC bypass.
3. Add the non-linear analog bypass attenuation volume controls for
   IN1L/IN1R-to-HPL/HPR (Page 1, Registers 22-23) and MAL/MAR (Page 1,
   Registers 24-25) using piecewise DECLARE_TLV_DB_RANGE tables.
4. Expose the CM2_L and CM2_R common-mode resistor selections in bits
   1:0 of AIC32X4_LMICPGANIN and AIC32X4_RMICPGANIN (Page 1, Registers
   54 and 57).

Tested on two TI TLV320AIC3204 boards (one wiring IN1 with LOL/LOR, the
other wiring IN3 with HPL/HPR) across headphone, line-out, capture,
driver bridging, and MicPGA-to-MAL/MAR analog bypass configurations.
Since neither board wires both IN1 and HPL/HPR on the same codec, the
direct IN1-to-HP bypass volume control ('IN1 Bypass Playback Volume')
was verified via alsa-lib TLV dB conversion and live I2C register
readback (Page 1, Registers 22-23) rather than end-to-end analog audio.

Signed-off-by: Gianfranco Mariotti <gianfranco.mariotti94@gmail.com>

Gianfranco Mariotti (4):
  ASoC: tlv320aic32x4: Add missing DAC and driver output mixer routes
  ASoC: tlv320aic32x4: Add Left and Right Mixer Amplifier DAPM support
  ASoC: tlv320aic32x4: Add IN1 and Mixer Amp analog bypass volume
    controls
  ASoC: tlv320aic32x4: Add CM2_L and CM2_R negative MicPGA input routing

 sound/soc/codecs/tlv320aic32x4.c | 117 ++++++++++++++++++++++++++-----
 sound/soc/codecs/tlv320aic32x4.h |   4 ++
 2 files changed, 107 insertions(+), 14 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-11-23 23:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 23:40 [PATCH 0/4] ASoC: tlv320aic32x4: Complete analog routing, Mixer Amp bypass, and volume controls Gianfranco Mariotti
2026-11-23 23:40 ` [PATCH 1/4] ASoC: tlv320aic32x4: Add missing DAC and driver output mixer routes Gianfranco Mariotti
2026-11-23 23:40 ` [PATCH 2/4] ASoC: tlv320aic32x4: Add Left and Right Mixer Amplifier DAPM support Gianfranco Mariotti
2026-11-23 23:40 ` [PATCH 3/4] ASoC: tlv320aic32x4: Add IN1 and Mixer Amp analog bypass volume controls Gianfranco Mariotti
2026-11-23 23:40 ` [PATCH 4/4] ASoC: tlv320aic32x4: Add CM2_L and CM2_R negative MicPGA input routing Gianfranco Mariotti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®