alsa_write: Handle EPIPE errors properly.