summaryrefslogtreecommitdiff
path: root/sound/firewire/motu/motu.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2017-03-22 15:30:12 +0300
committerTakashi Iwai <tiwai@suse.de>2017-03-28 13:33:19 +0300
commit8865a31e0fd8beb157b99e78cdf1f0241a67bd54 (patch)
treebf4f9b02fed5bb64ca4a83937f6a6c42654e0b80 /sound/firewire/motu/motu.h
parent6c3cef4890d072afa2d77371f358abaea54ec134 (diff)
downloadlinux-8865a31e0fd8beb157b99e78cdf1f0241a67bd54.tar.xz
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 <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/motu/motu.h')
-rw-r--r--sound/firewire/motu/motu.h5
1 files changed, 5 insertions, 0 deletions
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 <sound/control.h>
#include <sound/core.h>
+#include "../lib.h"
+
struct snd_motu {
struct snd_card *card;
struct fw_unit *unit;
struct mutex mutex;
+
+ bool registered;
+ struct delayed_work dwork;
};
#endif