OSDN Git Service

speaker-test: Add missing draining at the end
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 Sep 2014 14:36:44 +0000 (16:36 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 16 Sep 2014 14:36:44 +0000 (16:36 +0200)
commitf58ce3619de0612a6402c38f1cd81fb821818b60
tree7d894b295facdfa66fd77e83f0c60b40e1343cd7
parent808af5fdb00be048b485c3ea3f5a5081b99dae30
speaker-test: Add missing draining at the end

Without the call of snd_pcm_drain() the pending data on the buffer
might be discarded, which results in the abort of playback sound in
the middle.  Let's fix it.

Reported-and-tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
speaker-test/speaker-test.c