]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: compress_core: don't return -EBADFD from poll if paused
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Tue, 22 Oct 2013 10:26:48 +0000 (11:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Nov 2013 06:14:32 +0000 (07:14 +0100)
commit5eb3ee375cee65b15879e59ee258dc3a5a0dff17
treeb462225191fad72c544afe884da9469c2ea7c06a
parent58cb096cb2032bf0593660b994148acdf5b90975
ALSA: compress_core: don't return -EBADFD from poll if paused

Pausing audio playback is not an illegal state so it doesn't
seem sensible for poll() to return -EBADFD on a paused stream.
There's also no reason to assume that we can't write more data
to the DSP while playback is paused. Remove the -EBADFD so that
a stream in paused state will still report the buffer
availability from poll(). It is up to the user process to
manage its state so that it knows whether it is paused or not.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Acked-by VInod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/compress_offload.c