]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5651: Add button press support
authorHans de Goede <hdegoede@redhat.com>
Wed, 4 Jul 2018 22:59:33 +0000 (00:59 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 10 Jul 2018 17:49:26 +0000 (18:49 +0100)
commitba143fbba34a9b5443f01df8c84bbb635610d829
treed1a9d89d2d167409d5960aabea6dc459a1d9742e
parentc2f7ce09ae0a79e7f9e7d7f4283254c1fd2cf613
ASoC: rt5651: Add button press support

Enable button press detection for headsets by using the ovcd IRQ to get
notified of button presses.

This is modelled after (almost exactly copied from) the button press code
for the rt5640 which has identical ovcd hardware.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5651.c
sound/soc/codecs/rt5651.h