es8326: fix hp detect abnormal issue
Change-Id: I191d4de420db4a51f6a1a7d28ac5709f5fce2560
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user