diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2012-11-21 05:47:44 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-21 05:52:33 -0500 |
commit | 631fcab2eafc38a1415165ceaa217494c3f70ba5 (patch) | |
tree | 06ed9e7fd2f96bb68ae6fbab40e6eae41ad0a57a /sound/soc/codecs/wm0010.c | |
parent | 3f5475df378cfcac51e9384153aef122555a60cb (diff) |
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 <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm0010.c')
-rw-r--r-- | sound/soc/codecs/wm0010.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
614 | } | 614 | } |
615 | 615 | ||
616 | if (!wait_for_completion_timeout(&wm0010->boot_completion, | 616 | if (!wait_for_completion_timeout(&wm0010->boot_completion, |
617 | msecs_to_jiffies(10))) | 617 | msecs_to_jiffies(20))) |
618 | dev_err(codec->dev, "Failed to get interrupt from DSP\n"); | 618 | dev_err(codec->dev, "Failed to get interrupt from DSP\n"); |
619 | 619 | ||
620 | spin_lock_irqsave(&wm0010->irq_lock, flags); | 620 | spin_lock_irqsave(&wm0010->irq_lock, flags); |
@@ -626,7 +626,7 @@ static int wm0010_boot(struct snd_soc_codec *codec) | |||
626 | goto abort; | 626 | goto abort; |
627 | 627 | ||
628 | if (!wait_for_completion_timeout(&wm0010->boot_completion, | 628 | if (!wait_for_completion_timeout(&wm0010->boot_completion, |
629 | msecs_to_jiffies(10))) | 629 | msecs_to_jiffies(20))) |
630 | dev_err(codec->dev, "Failed to get interrupt from DSP loader.\n"); | 630 | dev_err(codec->dev, "Failed to get interrupt from DSP loader.\n"); |
631 | 631 | ||
632 | spin_lock_irqsave(&wm0010->irq_lock, flags); | 632 | spin_lock_irqsave(&wm0010->irq_lock, flags); |