diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2016-03-31 02:47:07 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-03-31 16:36:19 +0300 |
commit | 6c29230e2a5ff84df2b1358681414bad3e4bd220 (patch) | |
tree | 9c86d17f81b67aeb1abdc2f6a2edbb368d21037a /sound/firewire/oxfw/oxfw.h | |
parent | 7d3c1d5901aac873d13c0a03b29ee2bda183383f (diff) | |
download | linux-6c29230e2a5ff84df2b1358681414bad3e4bd220.tar.xz |
ALSA: oxfw: delayed registration of sound card
Some oxfw based units tends to fail asynchronous communication when
IEEE 1394 bus is under bus-reset state. When registering sound card
instance at unit probe callback, userspace applications can be involved
to the state.
This commit postpones the registration till the bus is calm.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/oxfw/oxfw.h')
-rw-r--r-- | sound/firewire/oxfw/oxfw.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/oxfw/oxfw.h b/sound/firewire/oxfw/oxfw.h index 2c84714e9bbd..2047dcb27625 100644 --- a/sound/firewire/oxfw/oxfw.h +++ b/sound/firewire/oxfw/oxfw.h @@ -39,6 +39,9 @@ struct snd_oxfw { struct mutex mutex; spinlock_t lock; + bool registered; + struct delayed_work dwork; + bool wrong_dbs; bool has_output; u8 *tx_stream_formats[SND_OXFW_STREAM_FORMAT_ENTRIES]; |