asoc: samsung: hdmi: Increase the initialization delay
authorSean Paul <seanpaul@chromium.org>
Tue, 14 May 2013 12:07:47 +0000 (08:07 -0400)
committerChromeBot <chrome-bot@google.com>
Tue, 14 May 2013 16:25:00 +0000 (09:25 -0700)
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 <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/51118
Reviewed-by: Dylan Reid <dgreid@chromium.org>
sound/soc/samsung/hdmi_audio.c

index 7eef7c8..5ded4ad 100644 (file)
@@ -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;
 }