diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2016-03-31 08:47:09 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-04-25 10:40:42 +0200 |
commit | b610386c8afba397238329c50c45a3abc79ba45f (patch) | |
tree | 0e80823c33eb20df300c5de5f6f1b44effcd9aa3 /sound/firewire/tascam/tascam.h | |
parent | d23f0517357ef48d2845846e899d125b3c1a492e (diff) | |
download | op-kernel-dev-b610386c8afba397238329c50c45a3abc79ba45f.zip op-kernel-dev-b610386c8afba397238329c50c45a3abc79ba45f.tar.gz |
ALSA: firewire-tascam: deleyed registration of sound card
When some tascam 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/tascam/tascam.h')
-rw-r--r-- | sound/firewire/tascam/tascam.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/firewire/tascam/tascam.h b/sound/firewire/tascam/tascam.h index 30ab77e..1f61011 100644 --- a/sound/firewire/tascam/tascam.h +++ b/sound/firewire/tascam/tascam.h @@ -51,6 +51,8 @@ struct snd_tscm { struct mutex mutex; spinlock_t lock; + bool registered; + struct delayed_work dwork; const struct snd_tscm_spec *spec; struct fw_iso_resources tx_resources; |