ALSA: Add SNDRV_PCM_STATE_PAUSED case in wait_for_avail function
authorJongHo Kim <furmuwon@gmail.com>
Tue, 17 Dec 2013 14:02:24 +0000 (23:02 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 17:42:10 +0000 (09:42 -0800)
commitb86d86822526d0be85d41cca71242fba6ac3c2c7
tree82f84b92df27707df6ab0c7abeb9ff5c948fddcf
parenta183811472052b849d74d4fb2674265c6f874610
ALSA: Add SNDRV_PCM_STATE_PAUSED case in wait_for_avail function

commit ed697e1aaf7237b1a62af39f64463b05c262808d upstream.

When the process is sleeping at the SNDRV_PCM_STATE_PAUSED
state from the wait_for_avail function, the sleep process will be woken by
timeout(10 seconds). Even if the sleep process wake up by timeout, by this
patch, the process will continue with sleep and wait for the other state.

Signed-off-by: JongHo Kim <furmuwon@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/pcm_lib.c