OSDN Git Service

pcm_file: use EIO instead of EPIPE when failing to write output file
authorAdam Miartus <amiartus@de.adit-jv.com>
Mon, 1 Jul 2019 13:25:16 +0000 (15:25 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 3 Jul 2019 12:22:43 +0000 (14:22 +0200)
commit61b0f8f3f25d620ae54c9b1d641e34ce84706504
treeaa6dc9b68fc7d87e237db07cee8e7254ed76d91e
parent053b430980b4c0ae9678305875122f807494d0ff
pcm_file: use EIO instead of EPIPE when failing to write output file

EPIPE is defined as XRUN which is not entirely correct in this condition

failing to write to a file in pcm_file plugin can not be simply recovered
by a retry as user of the api might be led to believe when receiving EPIPE

use EIO instead to indicate a different kid of error that may not be
recoverable by retry

Signed-off-by: Adam Miartus <amiartus@de.adit-jv.com>
Reviewed-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_file.c