All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: alsa-devel@alsa-project.org
Cc: Vinod Koul <vinod.koul@intel.com>
Subject: [PATCH] tinycompress: compress: use int for samples in compress_get_tstamp
Date: Mon, 17 Feb 2014 22:58:18 +0530	[thread overview]
Message-ID: <1392658098-14227-1-git-send-email-vinod.koul@intel.com> (raw)

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                          |    2 +-
 include/tinycompress/tinycompress.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/compress.c b/compress.c
index d1a2283..15dfdb7 100644
--- a/compress.c
+++ b/compress.c
@@ -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;
 
diff --git a/include/tinycompress/tinycompress.h b/include/tinycompress/tinycompress.h
index e340cca..03c396f 100644
--- a/include/tinycompress/tinycompress.h
+++ b/include/tinycompress/tinycompress.h
@@ -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
-- 
1.7.0.4

                 reply	other threads:[~2014-02-17 17:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1392658098-14227-1-git-send-email-vinod.koul@intel.com \
    --to=vinod.koul@intel.com \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.