summaryrefslogtreecommitdiff
path: root/sound/firewire/digi00x/digi00x.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2016-03-31 08:47:08 +0900
committerTakashi Iwai <tiwai@suse.de>2016-03-31 15:36:20 +0200
commit86c8dd7f4da3fb3f92fc5ab5144c971639d39745 (patch)
tree2f6b61bd721eedf7a945412efb4e7b499148f2b0 /sound/firewire/digi00x/digi00x.h
parent6c29230e2a5ff84df2b1358681414bad3e4bd220 (diff)
ALSA: firewire-digi00x: delayed registration of sound card
When some digi00x units are connected sequentially, userspace applications are involved at bus-reset state on IEEE 1394 bus. In the state, any communications can be canceled. Therefore, sound card registration should be delayed till the bus gets calm. This commit achieves it. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/digi00x/digi00x.h')
-rw-r--r--sound/firewire/digi00x/digi00x.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/digi00x/digi00x.h b/sound/firewire/digi00x/digi00x.h
index 907e73993677..2cd465c0caae 100644
--- a/sound/firewire/digi00x/digi00x.h
+++ b/sound/firewire/digi00x/digi00x.h
@@ -37,6 +37,9 @@ struct snd_dg00x {
struct mutex mutex;
spinlock_t lock;
+ bool registered;
+ struct delayed_work dwork;
+
struct amdtp_stream tx_stream;
struct fw_iso_resources tx_resources;