Skip to content

Commit

Permalink
ASoC: wm0010: Up the completion timeout to 20ms instead of 10ms
Browse files Browse the repository at this point in the history
Increase timeout to be more reliable and avoid the chance of
missing interrupts during boot.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Dimitris Papastamos authored and Mark Brown committed Nov 21, 2012
1 parent 3f5475d commit 631fcab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/wm0010.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 631fcab

Please sign in to comment.