ALSA: fireworks: move mutex from function callees to callers
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 14 Nov 2015 07:54:50 +0000 (16:54 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 14 Nov 2015 16:53:41 +0000 (17:53 +0100)
commitea54a37442639cf884918de69db46caf693490f8
treed680a3337db1051284f9203003abe1a4767d6020
parent5d5563b14fe34021b690eb3edc54abcc876e417c
ALSA: fireworks: move mutex from function callees 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 substeram 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/fireworks/fireworks_midi.c
sound/firewire/fireworks/fireworks_pcm.c
sound/firewire/fireworks/fireworks_stream.c