ALSA: pcm - Optimize the call of snd_pcm_update_hw_ptr() in read/write loop