diff options
author | Jeeja KP <jeeja.kp@intel.com> | 2016-09-02 21:49:44 +0530 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2016-09-06 12:10:29 +0200 |
commit | f3f6c61452e28ffdf93b101555546af8ef63def5 (patch) | |
tree | 7f5becf2971b221d9505d80d3ab84556c6a04b8b /sound/ppc | |
parent | 8c91d7d09e3cd52d5d409ba05e8eb9be0f6a2349 (diff) | |
download | linux-f3f6c61452e28ffdf93b101555546af8ef63def5.tar.gz linux-f3f6c61452e28ffdf93b101555546af8ef63def5.tar.bz2 linux-f3f6c61452e28ffdf93b101555546af8ef63def5.zip |
ALSA: pcm: Fix avail to return error if stream is suspended
When the stream is in suspended state some applications wait
on "Stream Pipe Error" in response to snd_pcm_avail call to
resume the stream.
In the current implementation snd_pcm_avail() returns zero
when the stream is in suspended state. This causes application
to enter in infinite loop for frames to be available.
"Stream pipe Error" code is getting returned for read/write
call when the stream is in suspended state. Similarly update
snd_pcm_avail to return -ESTRPIPE.
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/ppc')
0 files changed, 0 insertions, 0 deletions