aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2012-01-05 16:16:24 -0500
committerClemens Ladisch <clemens@ladisch.de>2013-10-20 16:07:57 -0400
commit640d9b421d4d8c7593aa8647479a4c7c6fe0ca65 (patch)
treee6a27c094a681aabcdcd726a513b5ae6568658b2 /sound
parent4edeb831f32d17fba056eb752f7afc26a19674a0 (diff)
ALSA: dice: check clock change timeout
Output a warning if the wait for the clock change notification times out. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/firewire/dice.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sound/firewire/dice.c b/sound/firewire/dice.c
index 61dd00c4fae3..3395c8ba7af1 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)
551 if (err < 0) 551 if (err < 0)
552 return err; 552 return err;
553 553
554 wait_for_completion_timeout(&dice->clock_accepted, 554 if (!wait_for_completion_timeout(&dice->clock_accepted,
555 msecs_to_jiffies(100)); 555 msecs_to_jiffies(100)))
556 dev_warn(&dice->unit->device, "clock change timed out\n");
556 557
557 return 0; 558 return 0;
558} 559}