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.