pcm: Wrap hw_ptr to boundary in pcm_ioplug
pcm: Wrap hw_ptr to boundary in pcm_ioplug

The function snd_pcm_ioplug_hw_ptr_update() always increased the hw_ptr
by delta, without wrapping it to the boundary. This would lead to
problems when after many hours, the hw_ptr would overflow.

Signed-off-by: Luciano Montanaro <dd3c8fedc64ed240187d3ad0d6727b6722eb337b@magnetimarelli.com>
Signed-off-by: Jaroslav Kysela <72edd5e1a572f82f059ccbb83c92b74d6cb051ff@perex.cz>

lgirdwood/alsa-lib,Distrotech/alsa-lib,takaswie/alsa-lib,alsa-project/alsa-lib,lgirdwood/alsa-lib,Distrotech/alsa-lib,mengdonglin/alsa-lib,mengdonglin/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib,lgirdwood/alsa-lib,lgirdwood/alsa-lib,zedongchen/alsa-lib,tiwai/alsa-lib,mengdonglin/alsa-lib,zedongchen/alsa-lib,zedongchen/alsa-lib,lgirdwood/alsa-lib,Distrotech/alsa-lib,mengdonglin/alsa-lib,takaswie/alsa-lib,Distrotech/alsa-lib,alsa-project/alsa-lib,tiwai/alsa-lib,alsa-project/alsa-lib,alsa-project/alsa-lib,takaswie/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib,mengdonglin/alsa-lib,zedongchen/alsa-lib,zedongchen/alsa-lib,Distrotech/alsa-lib