diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2016-02-20 10:18:58 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-02-20 17:45:38 +0300 |
commit | 4fd6c6c7295a50aa9390a3131623456e0c05d8f9 (patch) | |
tree | 250b8c6b5018aa221799cb30507fbf9b0b0dc872 /sound/firewire/bebob/bebob_stream.c | |
parent | 2a71e701660d7aa9ce1a740588dbf13b975deb10 (diff) | |
download | linux-4fd6c6c7295a50aa9390a3131623456e0c05d8f9.tar.xz |
ALSA: bebob: change type of substream counter from atomic_t to unsigned int
The counter is incremented/decremented in critical section protected with
mutex. Therefore, no need to use atomic_t.
This commit changes the type to unsigned int.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/bebob/bebob_stream.c')
-rw-r--r-- | sound/firewire/bebob/bebob_stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/firewire/bebob/bebob_stream.c b/sound/firewire/bebob/bebob_stream.c index 6809913110f4..8c687456a0e6 100644 --- a/sound/firewire/bebob/bebob_stream.c +++ b/sound/firewire/bebob/bebob_stream.c @@ -590,7 +590,7 @@ int snd_bebob_stream_start_duplex(struct snd_bebob *bebob, unsigned int rate) int err = 0; /* Need no substreams */ - if (atomic_read(&bebob->substreams_counter) == 0) + if (bebob->substreams_counter == 0) goto end; err = get_sync_mode(bebob, &sync_mode); @@ -735,7 +735,7 @@ void snd_bebob_stream_stop_duplex(struct snd_bebob *bebob) master = &bebob->tx_stream; } - if (atomic_read(&bebob->substreams_counter) == 0) { + if (bebob->substreams_counter == 0) { amdtp_stream_pcm_abort(master); amdtp_stream_stop(master); |