summaryrefslogtreecommitdiffstats
path: root/sound/firewire/oxfw/oxfw.h
diff options
context:
space:
mode:
authorTakashi Sakamoto2016-03-31 01:47:07 +0200
committerTakashi Iwai2016-03-31 15:36:19 +0200
commit6c29230e2a5ff84df2b1358681414bad3e4bd220 (patch)
tree9c86d17f81b67aeb1abdc2f6a2edbb368d21037a /sound/firewire/oxfw/oxfw.h
parentALSA: fireworks: delayed registration of sound card (diff)
downloadkernel-qcow2-linux-6c29230e2a5ff84df2b1358681414bad3e4bd220.tar.gz
kernel-qcow2-linux-6c29230e2a5ff84df2b1358681414bad3e4bd220.tar.xz
kernel-qcow2-linux-6c29230e2a5ff84df2b1358681414bad3e4bd220.zip
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.h3
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];