ASoC: cs42l42: Add support for set_jack calls
authorLucas Tanure <tanureal@opensource.cirrus.com>
Mon, 26 Apr 2021 15:53:01 +0000 (16:53 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 10 May 2021 16:06:08 +0000 (17:06 +0100)
commitc26a5289e86597e8826ad3093ad71ca0d5d9510a
treef257b40729848c109c0c540961bc7aa10cd8d593
parent87b42abae99d3d851aec64cd4d0f7def8113950e
ASoC: cs42l42: Add support for set_jack calls

Replace the internal jack creation by set_jack call, so users can map
buttons in their machine driver
Also only enable jack detection IRQ after set_jack call

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