ALSA: seq: virmidi: Use READ_ONCE/WRITE_ONCE() macros

The trigger flag in vmidi object can be referred in different contexts
concurrently, hence it's better to be put with READ_ONCE() and
WRITE_ONCE() macros to assure the accesses.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai
2018-07-30 14:48:29 +02:00
parent f7debfe540
commit 89b4ab213f
2 changed files with 6 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ struct snd_virmidi {
int seq_mode;
int client;
int port;
unsigned int trigger: 1;
bool trigger;
struct snd_midi_event *parser;
struct snd_seq_event event;
struct snd_virmidi_dev *rdev;