ALSA: dice: old firmware optimization for Dice notification
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 11 Feb 2016 11:18:38 +0000 (20:18 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 12 Feb 2016 08:52:49 +0000 (09:52 +0100)
commitfbeac84dbe9e72d58b1377a0d1bc8a58f40ce31a
tree0bfc1bf94a6b72c9ff5289e30020c7e20227aeb8
parentaec045b80d79bdc2cdd9b0003ff85b0470107e18
ALSA: dice: old firmware optimization for Dice notification

As long as I tested, Dice-based models produced by TC Electronic with
factory-configured settings transfer no notification within
ensure_phase_lock(). On the other hand, with upgraded firmwares, it
starts to transfer the notification. This seems to be a quirk of earlier
firmwares.

This commit ensures phase lock by reading a register after waiting for
the notification. Even if it's timed-out, ensure_phase_lock() return
success as long as the register has expected clock status.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/dice/dice-stream.c