correct snd_pcm_writei