aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-10-28 12:17:44 -0700
committerEric Laurent <elaurent@google.com>2014-10-28 12:17:44 -0700
commitd885bbf5fb0797a1b728400047bbbc1300cfd055 (patch)
tree1269b4bede3890b5e6e295debcd8dde8a22f3373
parentdaa3871b8b2001ffe87d86c147914aac27c0aaf8 (diff)
downloadtinycompress-lollipop-mr1-wfc-release.tar.gz
Pass directly the sample rate value to struct snd_codec instead of the ALSA enum. Bug: 17398311. Change-Id: Ic65f79759a623136fed8fd755bae39cee3550550
-rw-r--r--cplay.c2
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);