]> git.alsa-project.org Git - tinycompress.git/commit
compress: fix hpointer error when no sample rate
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Thu, 2 May 2013 13:58:53 +0000 (14:58 +0100)
committerVinod Koul <vinod.koul@intel.com>
Thu, 23 May 2013 02:26:31 +0000 (07:56 +0530)
commitaad6a2a407624ae8c50a8eed105ba436f0414a38
tree8473184cc3789d5792f2ba76aec0735709cab93a
parent31d610dada358232dfa458169da3e57c114d851c
compress: fix hpointer error when no sample rate

Fixes the oops() in compress_get_hpointer() to return
-ENODATA instead of errno if the sample rate is zero.
The value in errno here is not related to the reason
we are returning an error.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
compress.c