Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1adf5be authored by xiangxiao's avatar xiangxiao Committed by Mark Brown
Browse files

ASoC: delay the initial jack detect by debounce_time



so the hardware could get time to initialize and debounce

Signed-off-by: default avatarxiangxiao <xiaoxiang@xiaomi.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent cb29d7b9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -342,7 +342,8 @@ int snd_soc_jack_add_gpios(struct snd_soc_jack *jack, int count,
		gpio_export(gpios[i].gpio, false);

		/* Update initial jack status */
		snd_soc_jack_gpio_detect(&gpios[i]);
		schedule_delayed_work(&gpios[i].work,
				      msecs_to_jiffies(gpios[i].debounce_time));
	}

	return 0;