fix infinite draining of the rate plugin in SND_PCM_NONBLOCK mode
fix infinite draining of the rate plugin in SND_PCM_NONBLOCK mode

The draining function of the rate plugin does not handle properly the
SND_PCM_NONBLOCK case. It can write data to the slave plugin each time the
function is called, but does not update its internal state in order to
reach a stopping condition. Use a last_commit_ptr workaround to reach such
condition.

Signed-off-by: Sylvain BERTRAND <44121ddecd397e3a3a62c7ca253c1d7c4c3294c8@legeek.net>
Signed-off-by: Jaroslav Kysela <72edd5e1a572f82f059ccbb83c92b74d6cb051ff@perex.cz>

tiwai/alsa-lib,takaswie/alsa-lib,takaswie/alsa-lib,takaswie/alsa-lib,tiwai/alsa-lib,takaswie/alsa-lib,alsa-project/alsa-lib,alsa-project/alsa-lib,alsa-project/alsa-lib,alsa-project/alsa-lib,takaswie/alsa-lib,tiwai/alsa-lib,tiwai/alsa-lib