Fix errors in partial reads/writes with rate plugin
Fix errors in partial reads/writes with rate plugin

Fix errors in partial reads/writes (e.g. draining) with rate plugin.

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