[alsa-devel] [PATCH 1/2] ASoC: Add support for Conexant CX2072X CODEC

Mark Brown broonie at kernel.org
Wed May 8 10:59:53 CEST 2019


On Wed, May 08, 2019 at 10:16:06AM +0200, Takashi Iwai wrote:
> Mark Brown wrote:

> > The GPIO/IRQ equivalence thing should just be a purely Linux internal
> > thing - looking at the driver it appears that there's no need to look at
> > the GPIO status, Linux can tell if something is plugged in purely by
> > reading the chip registers so the jack status function could directly be
> > the interrupt handler.

> But it can't see the button status or detect the headset type without
> reading the codec's magic registers...  So some help from the codec
> side is required, and the irq handler isn't in the codec side because

The whole thing should be in the CODEC side.

> there is no i2c irq assigned but only ACPI gpio, as far as I checked.

You can map through an ACPI GPIO to an interrupt without worrying about
the fact that it's mapped as a GPIO in ACPI IIRC - if you can't there's
lots of other drivers are going to have issues.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20190508/cd739881/attachment.sig>


More information about the Alsa-devel mailing list