]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: nau8825: fix fake interruption when booting
authorJohn Hsu <KCHSU0@nuvoton.com>
Mon, 10 Jun 2019 03:40:40 +0000 (11:40 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 13 Jun 2019 15:21:17 +0000 (16:21 +0100)
commitc8ea4a3029622878e1783cd0e748017bccd134b1
tree5aed3fcf389bc09d7817ed818c765b38cb86f14b
parentaa5d5c54ee1470ba821f6b53712c385f19feb566
ASoC: nau8825: fix fake interruption when booting

There is no pull-up resistor at IRQ line where it connects from
the codec to SoC. When booting, the signal of IRQ pin will keep low
which makes the SoC invoke the ISR repeatedly because the IRQ is
registered trigger low. It will not stop until the codec sets up
the interruption and pulls the signal high. In the patch,
nau8825 will internally pull the signal to high at booting in case
the fake interrupts happen.

Signed-off-by: John Hsu <KCHSU0@nuvoton.com>
Tested-by: Cheng-Yi Chiang <cychiang@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8825.c
sound/soc/codecs/nau8825.h