ASoC: cs42l42: Check jack status before reporting button events
authorLucas Tanure <tanureal@opensource.cirrus.com>
Tue, 25 May 2021 09:08:22 +0000 (10:08 +0100)
committerMark Brown <broonie@sirena.org.uk>
Tue, 25 May 2021 15:45:05 +0000 (16:45 +0100)
commit0e91438ff7045d89b3e82bcef90fadd002eb1c74
treedbfc88a489e19397e98a9e1ee7668a651ad1a088
parent4b38da6ffd6227c930be5c246f6f0f8ef3a80f16
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>
sound/soc/codecs/cs42l42.c