diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2016-03-31 02:47:08 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-03-31 16:36:20 +0300 |
commit | 86c8dd7f4da3fb3f92fc5ab5144c971639d39745 (patch) | |
tree | 2f6b61bd721eedf7a945412efb4e7b499148f2b0 /sound/firewire/digi00x/digi00x.h | |
parent | 6c29230e2a5ff84df2b1358681414bad3e4bd220 (diff) | |
download | linux-86c8dd7f4da3fb3f92fc5ab5144c971639d39745.tar.xz |
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.h | 3 |
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; |