ASoC: rt5677: clear interrupts by polarity flip
authorBen Zhang <benzh@chromium.org>
Tue, 18 Jun 2019 23:45:54 +0000 (17:45 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 19 Jun 2019 11:46:24 +0000 (12:46 +0100)
commit4f7b018b55db0361718161e1471d8b7a16fdfa47
tree945bda9d9c81f66f461b26492e9895aea504cc80
parent16395ceee11f8f8af764bac76adc20a43ba1a153
ASoC: rt5677: clear interrupts by polarity flip

The rt5677 jack detection function has a requirement that the polarity
of an interrupt be flipped after it fires in order to clear the
interrupt.

This patch implements an irq_chip with irq_domain directly instead of
using regmap-irq, so that interrupt source line polarities can be
flipped in the irq handler.

The reason that this patch does not add this feature within regmap-irq
is that future patches will add hotword detection support to this irq
handler. Those patches will require adding additional logic that would
not make sense to have in regmap-irq.

Signed-off-by: Ben Zhang <benzh@chromium.org>
Signed-off-by: Fletcher Woodruff <fletcherw@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5677.c
sound/soc/codecs/rt5677.h