From: Clemens Ladisch Date: Thu, 5 Jan 2012 21:16:24 +0000 (+0100) Subject: ALSA: dice: check clock change timeout X-Git-Tag: v3.13-rc1~2^2~120^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=640d9b421d4d8c7593aa8647479a4c7c6fe0ca65;p=profile%2Fivi%2Fkernel-x86-ivi.git ALSA: dice: check clock change timeout Output a warning if the wait for the clock change notification times out. Signed-off-by: Clemens Ladisch --- diff --git a/sound/firewire/dice.c b/sound/firewire/dice.c index 61dd00c..3395c8b 100644 --- a/sound/firewire/dice.c +++ b/sound/firewire/dice.c @@ -551,8 +551,9 @@ static int dice_change_rate(struct dice *dice, unsigned int clock_rate) if (err < 0) return err; - wait_for_completion_timeout(&dice->clock_accepted, - msecs_to_jiffies(100)); + if (!wait_for_completion_timeout(&dice->clock_accepted, + msecs_to_jiffies(100))) + dev_warn(&dice->unit->device, "clock change timed out\n"); return 0; }