ALSA: firewire-motu: wait for notification when changing clock configuration for...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 14 Jun 2020 14:12:21 +0000 (23:12 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Jun 2020 13:59:19 +0000 (15:59 +0200)
commit675398674c4edc2058a1dd632abd5d748b4653c3
tree14337d22f1a57baae33301f2b1b47662c6a20e21
parentd9d52398b7108a6fa40b66f73830e8042824d817
ALSA: firewire-motu: wait for notification when changing clock configuration for protocol v3

It costs expensive to change clock configuration for models of protocol
version 3. In current implementation, speculative strategy is used to
finish the operation; just waiting for 4 seconds. As long as I investigate,
when accepting and changing clock status actually, the device sends
notification with mask.

This commit uses wise way to wait for the notification after changing
sampling clock rate during 4 seconds.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20200614141221.53527-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/motu/motu-protocol-v3.c