]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs42l42: Report jack and button detection
authorLucas Tanure <tanureal@opensource.cirrus.com>
Sat, 6 Mar 2021 18:55:49 +0000 (18:55 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 13:14:27 +0000 (13:14 +0000)
commit978cb142ee5f327fbcfe8e8646d694ec5541690e
tree3a713456706ca2cddcb52ab317e81d2929aba4de
parent7ba7009d3f448eb8d379f206b87bf39cae47ce0a
ASoC: cs42l42: Report jack and button detection

Report the Jack events to the user space through ALSA.
Also moves request_threaded_irq() to component_probe so it don't get
interrupts before the initialization the struct snd_soc_jack.

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210306185553.62053-12-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l42.c
sound/soc/codecs/cs42l42.h