ALSA: pcm: Block the release until the system resume finishes
authorTakashi Iwai <tiwai@suse.de>
Sun, 23 May 2021 09:09:20 +0000 (11:09 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 May 2021 06:49:55 +0000 (08:49 +0200)
commit534a427bface78d682482ad66ce1a517522acc1d
treed60d1e008e55bb00ad90cbbd3b23ed12a1b0549e
parentb6cc78da367cf9aac7ae77bbea73ecca43a70461
ALSA: pcm: Block the release until the system resume finishes

The normal PCM operations are already blocked during the card power
off state in the PCM common ioctl handler, but the release isn't
covered.  As the PCM stream release may also access the hardware,
let's block the release until the card power turns on.

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