]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: bebob: move mutex from function callee to callers
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 20 Feb 2016 07:18:57 +0000 (16:18 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 20 Feb 2016 14:45:25 +0000 (15:45 +0100)
commit0735b9918ae8d498e7d5b6cf3fbe9fb614e7cd56
tree39d699e3e8a66be4bd363df9d1cdb97570072a22
parent983ea27e28606d30418f0d732616e588ffb7725e
ALSA: bebob: move mutex from function callee to callers

Currently, critical section is protected by mutex in functions of
fireworks_stream.c. Callers increments/decrements substreams counter
before calling the functions. Moving mutex to the callers code allows
to change type of the substream counter from atomic_t to unsigned int.

This commit is a preparation for obsoleting usage of atomic_t for
substream counter.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/bebob/bebob_midi.c
sound/firewire/bebob/bebob_pcm.c
sound/firewire/bebob/bebob_stream.c