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

Commit 9c324afe authored by oder_chiou@realtek.com's avatar oder_chiou@realtek.com Committed by Mark Brown
Browse files

ASoC: rt5663: Add delay for jack plug in



Codec initialize takes some time when 3.5mm jack plugged in. Add a
delay to report jack plugged event to user space to avoid pop noise.

Signed-off-by: default avatarHsinyu Chao <hychao@chromium.org>
Signed-off-by: default avatarOder Chiou <oder_chiou@realtek.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent c5755fbc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1705,6 +1705,9 @@ static void rt5663_jack_detect_work(struct work_struct *work)
			default:
				dev_err(codec->dev, "Unknown CODEC Version\n");
			}

			/* Delay the jack insert report to avoid pop noise */
			msleep(30);
		} else {
			/* jack is already in, report button event */
			report = SND_JACK_HEADSET;