]> git.alsa-project.org Git - tinycompress.git/commit
cplay: Always write whole buffer requested by user
authorDaniel Baluta <daniel.baluta@nxp.com>
Mon, 5 Nov 2018 14:02:43 +0000 (16:02 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 7 Dec 2018 05:22:36 +0000 (10:52 +0530)
commitd99dc2875843327feb658d674c8f4d710e8bd432
treee4cf57e5e1b03acf4e294783f8446a64b3b7af4e
parent274e8a9e3568692c9f976e76121c62ce412d17af
cplay: Always write whole buffer requested by user

cplay first writes frag * fragment_size and then
it only writes one fragment at a time.

This means for example than if the user supplied a buffer_size
it will only be used for the first write.

Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
src/utils/cplay.c