From: Dimitris Papastamos Date: Wed, 21 Nov 2012 10:47:44 +0000 (+0000) Subject: ASoC: wm0010: Up the completion timeout to 20ms instead of 10ms X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=631fcab2eafc38a1415165ceaa217494c3f70ba5;p=linux-beck.git ASoC: wm0010: Up the completion timeout to 20ms instead of 10ms Increase timeout to be more reliable and avoid the chance of missing interrupts during boot. Signed-off-by: Dimitris Papastamos Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c index 4b68ea86d7cb..8ebb8da88f73 100644 --- a/sound/soc/codecs/wm0010.c +++ b/sound/soc/codecs/wm0010.c @@ -614,7 +614,7 @@ static int wm0010_boot(struct snd_soc_codec *codec) } if (!wait_for_completion_timeout(&wm0010->boot_completion, - msecs_to_jiffies(10))) + msecs_to_jiffies(20))) dev_err(codec->dev, "Failed to get interrupt from DSP\n"); spin_lock_irqsave(&wm0010->irq_lock, flags); @@ -626,7 +626,7 @@ static int wm0010_boot(struct snd_soc_codec *codec) goto abort; if (!wait_for_completion_timeout(&wm0010->boot_completion, - msecs_to_jiffies(10))) + msecs_to_jiffies(20))) dev_err(codec->dev, "Failed to get interrupt from DSP loader.\n"); spin_lock_irqsave(&wm0010->irq_lock, flags);