ASoC: cs42l42: Check jack status before reporting button events

Jack must be connected before reporting button events and
if the jack is disconnected button release must be reported

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Reviewed-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Message-Id: <20210525090822.64577-4-tanureal@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@sirena.org.uk>
This commit is contained in:
Lucas Tanure 2021-05-25 10:08:22 +01:00 • committed by Mark Brown
commit 0e91438ff7
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0