[PATCH] pcm_rate: fix hw_ptr boundary wrapping issue