OSDN Git Service

ASoC: rt5682: Report the button event in the headset type only
authorOder Chiou <oder_chiou@realtek.com>
Thu, 16 Jul 2020 03:01:23 +0000 (11:01 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2020 19:29:09 +0000 (20:29 +0100)
commitfe0a53044b4bce947045eadd7fa1adbc4685afab
tree536b7fb25c4538383a06a01b0d1c85e161da506f
parentb3df80ab6d147d4738be242e1c91e5fdbb6b03ef
ASoC: rt5682: Report the button event in the headset type only

The irq work will be manipulated by resume function, and it will report
the wrong jack type while the jack type is headphone in the button event.

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Link: https://lore.kernel.org/r/20200716030123.27122-1-oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5682.c