From 79bafa0835c0245898abdea938bc4e4749c290e7 Mon Sep 17 00:00:00 2001 From: Sean Paul Date: Tue, 14 May 2013 08:07:47 -0400 Subject: [PATCH] asoc: samsung: hdmi: Increase the initialization delay This patch increases the initialization wait time in the samsung hdmi audio driver to 3 seconds. The wait time was previously 5ms which did not leave enough time for the hdmi video driver to debounce hotplug and initialize the hardware. BUG=chromium:239641 TEST=Tested on snow, hotplug transferred audio between device & monitor Change-Id: I86f7526923d77e753d0a5546fdeafbe7ee11e1fe Signed-off-by: Sean Paul Reviewed-on: https://gerrit.chromium.org/gerrit/51118 Reviewed-by: Dylan Reid --- sound/soc/samsung/hdmi_audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/samsung/hdmi_audio.c b/sound/soc/samsung/hdmi_audio.c index 7eef7c85106a..5ded4ad1b8f1 100644 --- a/sound/soc/samsung/hdmi_audio.c +++ b/sound/soc/samsung/hdmi_audio.c @@ -474,9 +474,9 @@ static irqreturn_t hdmi_audio_irq_handler(int irq, void *arg) snd_printdd("%s %s\n", __func__, atomic_read(&ctx->plugged) ? "plugged" : "unplugged"); - /* should set audio regs after ip, phy got stable. 5ms suff */ + /* Set audio regs after ip & phy get stable, 3s should suffice. */ queue_delayed_work(ctx->hpd_wq, &ctx->hotplug_work, - msecs_to_jiffies(5)); + msecs_to_jiffies(3000)); return IRQ_HANDLED; } -- 2.20.1