Commit 640d9b421d4d8c7593aa8647479a4c7c6fe0ca65

Authored by Clemens Ladisch
1 parent 4edeb831f3

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>

Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff

sound/firewire/dice.c
... ... @@ -551,8 +551,9 @@
551 551 if (err < 0)
552 552 return err;
553 553  
554   - wait_for_completion_timeout(&dice->clock_accepted,
555   - msecs_to_jiffies(100));
  554 + if (!wait_for_completion_timeout(&dice->clock_accepted,
  555 + msecs_to_jiffies(100)))
  556 + dev_warn(&dice->unit->device, "clock change timed out\n");
556 557  
557 558 return 0;
558 559 }