summaryrefslogtreecommitdiffstats
path: root/sound/firewire/lib.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2015-10-09 08:10:26 +0900
committerTakashi Iwai <tiwai@suse.de>2015-10-09 09:57:05 +0200
commitd3ef9cb93aec59eb1d90d01ae0642fd517c25381 (patch)
treeab00c5e5d1c4ce2b0b12a2614e229d78b806aff6 /sound/firewire/lib.h
parent585d7cba5e1fcd8703a120042f35695165986b9b (diff)
downloadlinux-d3ef9cb93aec59eb1d90d01ae0642fd517c25381.tar.bz2
ALSA: firewire-lib: add a restriction for a transaction at once
Currently, when waiting for a response, callers can start another transaction by scheduling another work. This is not good for error processing of transaction, especially the first response is too late. This commit serialize request/response transactions, by adding one boolean member to represent idling state. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/firewire/lib.h b/sound/firewire/lib.h
index 37a7fe4235f2..0af06f44e8c2 100644
--- a/sound/firewire/lib.h
+++ b/sound/firewire/lib.h
@@ -30,6 +30,7 @@ typedef int (*snd_fw_async_midi_port_fill)(
struct snd_fw_async_midi_port {
struct fw_device *parent;
struct work_struct work;
+ bool idling;
u64 addr;
struct fw_transaction transaction;