[ALSA] PCM - clean up snd_pcm_lib_read/write