ALSA: core: Use READ_ONCE() / WRITE_ONCE() for power state change
authorTakashi Iwai <tiwai@suse.de>
Sun, 23 May 2021 09:09:15 +0000 (11:09 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 May 2021 06:48:03 +0000 (08:48 +0200)
commit533a7ed9d541674e815c7f31c933015e257df3e5
tree65d7a30150793d5e2ced2099ed314b4c55c877a3
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
ALSA: core: Use READ_ONCE() / WRITE_ONCE() for power state change

We need proper barriers to handle the power state change of the card
from different CPUs.

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Link: https://lore.kernel.org/r/20210523090920.15345-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h