From 8865a31e0fd8beb157b99e78cdf1f0241a67bd54 Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Wed, 22 Mar 2017 21:30:12 +0900 Subject: ALSA: firewire-motu: postpone sound card registration Just after appearing on IEEE 1394 bus, this unit generates several bus resets. This is due to loading firmware from on-board flash memory and initialize hardware. It's better to postpone sound card registration. This commit applies this idea. Signed-off-by: Takashi Sakamoto Signed-off-by: Takashi Iwai --- sound/firewire/motu/motu.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sound/firewire/motu/motu.h') diff --git a/sound/firewire/motu/motu.h b/sound/firewire/motu/motu.h index f3d0b2834942..eb0ffd56c835 100644 --- a/sound/firewire/motu/motu.h +++ b/sound/firewire/motu/motu.h @@ -20,10 +20,15 @@ #include #include +#include "../lib.h" + struct snd_motu { struct snd_card *card; struct fw_unit *unit; struct mutex mutex; + + bool registered; + struct delayed_work dwork; }; #endif -- cgit v1.2.3