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>
This commit is contained in:
Hans de Goede 2018-07-05 00:59:33 +02:00 • committed by Mark Brown
commit df1569f200
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 159 additions and 7 deletions