]> git.alsa-project.org Git - alsa-utils.git/commit
aplay: Fix to handle pause when system is suspended/Resumed
authorJeeja KP <jeeja.kp@intel.com>
Mon, 28 Nov 2016 16:32:00 +0000 (22:02 +0530)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Nov 2016 19:19:21 +0000 (20:19 +0100)
commitd24a60b7818fafddb3ad27cc05cda82636880f64
tree8a79e86c2cf1aa3a53011064072b9a6ee2514c38
parente61f35ba4dd1bb0802320d25ecbc8a31ed85caea
aplay: Fix to handle pause when system is suspended/Resumed

If PCM is paused and then we do system supend-resume, the stream throws
error(EBADF) when stream is paused released.

Check the pcm state before pause/release and if stream is suspended,
call snd_pcm_resume to resume the stream.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
aplay/aplay.c