diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2016-03-31 08:47:06 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-03-31 15:36:19 +0200 |
commit | 7d3c1d5901aac873d13c0a03b29ee2bda183383f (patch) | |
tree | a4a8a443d00ab4533fa14cdf28a77b9d45107e6f /sound/firewire/fireworks/fireworks.h | |
parent | 04a2c73c97ebb224dfb411ab35bb18d7b8245e39 (diff) |
ALSA: fireworks: delayed registration of sound card
When some fireworks 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/fireworks/fireworks.h')
-rw-r--r-- | sound/firewire/fireworks/fireworks.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/fireworks/fireworks.h b/sound/firewire/fireworks/fireworks.h index 96c4e0c6a9bd..471c77254dfd 100644 --- a/sound/firewire/fireworks/fireworks.h +++ b/sound/firewire/fireworks/fireworks.h @@ -65,6 +65,9 @@ struct snd_efw { struct mutex mutex; spinlock_t lock; + bool registered; + struct delayed_work dwork; + /* for transaction */ u32 seqnum; bool resp_addr_changable; |