es8326: fix hp detect abnormal issue

Change-Id: I191d4de420db4a51f6a1a7d28ac5709f5fce2560
This commit is contained in:
weijinmei
2024-07-02 17:42:19 +08:00
committed by zhangmeng
parent 1495a88b65
commit 320b552e30

View File

@@ -882,7 +882,11 @@ static void es8326_jack_detect_handler(struct work_struct *work)
#endif
goto exit;
}
#ifdef SPACEMIT_CONFIG_CODEC_ES8326
if ((es8326->jack->status & SND_JACK_HEADSET) == SND_JACK_HEADSET) {
#else
if (es8326->jack->status & SND_JACK_HEADSET) {
#endif
/* detect button */
dev_dbg(comp->dev, "button pressed\n");
queue_delayed_work(system_wq, &es8326->button_press_work, 10);