summaryrefslogtreecommitdiff
path: root/sound/firewire/lib.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2016-03-31 02:47:04 +0300
committerTakashi Iwai <tiwai@suse.de>2016-03-31 16:36:18 +0300
commit923f92ebb43e7a09915a5708d4805c1e099db46c (patch)
tree09bc1375e8c2992fec3bf9d6b109d624dbf5dd94 /sound/firewire/lib.h
parent0eced45ca60666aff4c12f31fef4005ae37e859e (diff)
downloadlinux-923f92ebb43e7a09915a5708d4805c1e099db46c.tar.xz
ALSA: firewire-lib: add new function to schedule a work for sound card registration
In former commit, ALSA dice driver postpone sound card registration after IEEE 1394 bus is calm. This idea has advantages for the other drivers. This commit adds a helper function for it to firewire-lib module. The function is really for the specific purpose. Callers should initialize delayed work structure with callback function. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/lib.h')
-rw-r--r--sound/firewire/lib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/lib.h b/sound/firewire/lib.h
index f3f6f84c48d6..f6769312ebfc 100644
--- a/sound/firewire/lib.h
+++ b/sound/firewire/lib.h
@@ -22,6 +22,9 @@ static inline bool rcode_is_permanent_error(int rcode)
return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR;
}
+void snd_fw_schedule_registration(struct fw_unit *unit,
+ struct delayed_work *dwork);
+
struct snd_fw_async_midi_port;
typedef int (*snd_fw_async_midi_port_fill)(
struct snd_rawmidi_substream *substream,