modify alsa write