]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf7a04f79ca2fec24356bf901c3df9c2f5405cf3
treedbfc88a489e19397e98a9e1ee7668a651ad1a088
parent3dd5c8c693d7ba6aec3a65124ecc00d08a4ef0bb
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