]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: rt5659: Enable IRQ output for GPIO1 pin
authorNicolin Chen <nicoleotsuka@gmail.com>
Wed, 24 Aug 2016 19:03:39 +0000 (12:03 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 1 Sep 2016 20:10:21 +0000 (21:10 +0100)
commit38d16f791634ee95a1a818d2170dc75681ee80af
tree237609bede6c3b1ea098c76f519a3df247d78c91
parentc6f8769b03749b244331699471bef02c9b9d5ebc
ASoC: rt5659: Enable IRQ output for GPIO1 pin

Since it's possible to have an IRQ without enabling JD3, the
GPIO1 pin then would remain its default GPIO function which
is set as an input direction (seeing from rt5659). Meanwhile,
CPU would also listen this connection via its own GPIO input:
      [input]          [input]
    CPU GPIO <--------> RT5659 GPIO1

The result for the IRQ on the CPU side will be unexpectable.

So this patch enables the IRQ output for GPIO1 pin any way
as long as there's an IRQ assigned from platform data or DT:
      [input]          [IRQ output]
    CPU GPIO <--------< RT5659 GPIO1

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5659.c