]> git.alsa-project.org Git - tinycompress.git/commitdiff
compress: use int for samples in compress_get_tstamp
authorVinod Koul <vinod.koul@intel.com>
Mon, 17 Feb 2014 17:25:24 +0000 (22:55 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 17 Feb 2014 17:25:24 +0000 (22:55 +0530)
in 64bit updates we made the sample rate as 32bit explicitly, so update the
library API as well

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

index d1a22831402d6234a8bb43f6f78abdeea5fe2548..15dfdb74137ed0d1c7d65d8318391ac75ae79ee4 100644 (file)
@@ -333,7 +333,7 @@ int compress_get_hpointer(struct compress *compress,
 }
 
 int compress_get_tstamp(struct compress *compress,
-                       unsigned long *samples, unsigned int *sampling_rate)
+                       unsigned int *samples, unsigned int *sampling_rate)
 {
        struct snd_compr_tstamp ktstamp;
 
index e340cca45cf1efa042d3dad35eccf164c8352bf7..03c396fccea5f2a176d24fd580ee6a447da657ec 100644 (file)
@@ -125,7 +125,7 @@ int compress_get_hpointer(struct compress *compress,
  * @sampling_rate: sampling rate of decoded samples
  */
 int compress_get_tstamp(struct compress *compress,
-               unsigned long *samples, unsigned int *sampling_rate);
+               unsigned int *samples, unsigned int *sampling_rate);
 
 /*
  * compress_write: write data to the compress stream