]> git.alsa-project.org Git - tinycompress.git/commit
compress: Allow client to pass "don't care" for fragment size/number
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Fri, 22 Feb 2013 16:05:32 +0000 (16:05 +0000)
committerVinod Koul <vinod.koul@intel.com>
Fri, 22 Feb 2013 18:08:12 +0000 (23:38 +0530)
commitacc0960ea1c11039d4fbb819349a34cefb06795b
treefe7bbc4a0acdf48f5881a38368926ea2cc67b9ec
parente24adce21294205b5d2d9e4596cf54ade26dd1a7
compress: Allow client to pass "don't care" for fragment size/number

Client cannot know what is a sensible fragment size and count
for the device unless it has prior knowledge of the precise
hardware. To allow for generic clients not hardcoded for particular
hardware, this change allows fragment_size and fragments to be
passed as 0, meaning "don't care" and tinycompress will choose
default values read from the driver.

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
compress.c
include/tinycompress/tinycompress.h