[alsa-devel] [PATCH 2/3] tinycompress: cplay: use the numeric sample rate

Vinod Koul vinod.koul at intel.com
Mon Dec 16 16:14:59 CET 2013


Signed-off-by: Vinod Koul <vinod.koul at intel.com>
---
 cplay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cplay.c b/cplay.c
index 10c5424..c46577a 100644
--- a/cplay.c
+++ b/cplay.c
@@ -226,7 +226,7 @@ void play_samples(char *name, unsigned int card, unsigned int device,
 	codec.id = SND_AUDIOCODEC_MP3;
 	codec.ch_in = channels;
 	codec.ch_out = channels;
-	codec.sample_rate = compress_get_alsa_rate(rate);
+	codec.sample_rate = rate;
 	if (!codec.sample_rate) {
 		fprintf(stderr, "invalid sample rate %d\n", rate);
 		fclose(file);
-- 
1.7.0.4



More information about the Alsa-devel mailing list