Re: [PATCH 0/4] ASoC: Add support for GPIOs driven amplifiers
From: Herve Codina
Date: Mon Mar 30 2026 - 11:51:57 EST
On Mon, 30 Mar 2026 16:08:47 +0100
Mark Brown <broonie@xxxxxxxxxx> wrote:
> On Mon, Mar 30, 2026 at 12:16:04PM +0200, Herve Codina wrote:
> > On some embedded system boards, audio amplifiers are designed using
> > discrete components such as op-amp, several resistors and switches to
> > either adjust the gain (switching resistors) or fully switch the
> > audio signal path (mute and/or bypass features).
> >
> > Those switches are usually driven by simple GPIOs.
>
> This sounds a lot like simple-amplifier.c?
simple-amplifier.c doesn't handle amplifier driven by GPIOs.
The only used GPIO in simple-amplifier.c is used to handle the
enable pin the component.
simple-amplifier.c handles component such as dio2125 alone.
Here, we have op-amp but also several components around such as
switches.
The gpio driven amplifier proposed is more generic and can handle
more complex design. I.e. op-amp + resistor and/or line (mute,
bypass) switching. Hardwares handled by this driver are a superset
of just dio2125 and so simple-amplifier.c.
IMHO, it makes sense to have a specific driver for those kind
of hardware design.
Best regards,
Hervé