ALSA: firewire-lib: add a restriction for a transaction at once
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 8 Oct 2015 23:10:26 +0000 (08:10 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 9 Oct 2015 07:57:05 +0000 (09:57 +0200)
commitd3ef9cb93aec59eb1d90d01ae0642fd517c25381
treeab00c5e5d1c4ce2b0b12a2614e229d78b806aff6
parent585d7cba5e1fcd8703a120042f35695165986b9b
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>
sound/firewire/lib.c
sound/firewire/lib.h