ALSA: pcm: Assure sync with the pending stop operation at suspend
authorTakashi Iwai <tiwai@suse.de>
Sat, 6 Feb 2021 20:36:54 +0000 (21:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Feb 2021 15:00:39 +0000 (16:00 +0100)
commit2c87c1a49c9d113a9f3e8e951d7d64be5ff50ac1
tree872952abd66eb91965fc148ee5bb7cb4495bb187
parent29bb274e94974669acb5186a75538f20df1508b6
ALSA: pcm: Assure sync with the pending stop operation at suspend

The current PCM code calls the sync_stop at the resume action due to
the analogy to the PCM prepare call pattern.  But, it makes little
sense, as the sync should have been done rather at the suspend time,
not at the resume time.

This patch corrects the sync_stop call at suspend/resume to assure the
sync before finishing the suspend.

Fixes: 1e850beea278 ("ALSA: pcm: Add the support for sync-stop operation")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210206203656.15959-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c