ASoC: rt5682: add button detection mode control
authorBard Liao <bardliao@realtek.com>
Tue, 3 Jul 2018 05:07:25 +0000 (13:07 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 3 Jul 2018 15:00:21 +0000 (16:00 +0100)
commit2daf3d9962c5a11fb79fe17bae03125df5d60236
tree6bb262a36b8848a3caf2752ff4c4761b18677a59
parent424e2b4b3521334812d833eef27df77671428698
ASoC: rt5682: add button detection mode control

We are currently using power saving mode for button detection.
However, it will impact the headset recording performance.
This patch will switch button detection to normal mode in capture
and switch to power saving mode in the end of capture.

Signed-off-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682.c