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>
Thu, 9 Jan 2014 20:24:20 +0000 (12:24 -0800)
commit79acc77a3f65760e9403d431f4a0b100dccdfb6e
tree9c8a64b123b0b06ec4f7cce040f98654726ae8b7
parent6dd598aca39d1e62fd26403322b762adfd3b2440
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