]> git.alsa-project.org Git - tinycompress.git/commit
compress: Handle case of pause() during compress_write()
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Fri, 22 Feb 2013 16:04:22 +0000 (16:04 +0000)
committerVinod Koul <vinod.koul@intel.com>
Fri, 22 Feb 2013 18:08:12 +0000 (23:38 +0530)
commite24adce21294205b5d2d9e4596cf54ade26dd1a7
tree44defd301d3a06f2f75917f13d59fddcbb9dc826
parent83f02781b29df09118be4a1021496334778227ca
compress: Handle case of pause() during compress_write()

If stream is paused() during a compress_write() the poll()
will return 0 or -EBADFD, or the write() will return -EBADFD.
This is not an error so compress_write() should not pass an
error code to the caller. It should abort the write and then
return the number of bytes it had written up to that point.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
compress.c