提交 9c324afe 编写于 作者: O oder_chiou@realtek.com 提交者: Mark Brown

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: NHsinyu Chao <hychao@chromium.org>
Signed-off-by: NOder Chiou <oder_chiou@realtek.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 c5755fbc
...@@ -1705,6 +1705,9 @@ static void rt5663_jack_detect_work(struct work_struct *work) ...@@ -1705,6 +1705,9 @@ static void rt5663_jack_detect_work(struct work_struct *work)
default: default:
dev_err(codec->dev, "Unknown CODEC Version\n"); dev_err(codec->dev, "Unknown CODEC Version\n");
} }
/* Delay the jack insert report to avoid pop noise */
msleep(30);
} else { } else {
/* jack is already in, report button event */ /* jack is already in, report button event */
report = SND_JACK_HEADSET; report = SND_JACK_HEADSET;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册