diff options
author | Eric Laurent <elaurent@google.com> | 2014-10-28 12:17:44 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-10-28 12:17:44 -0700 |
commit | d885bbf5fb0797a1b728400047bbbc1300cfd055 (patch) | |
tree | 1269b4bede3890b5e6e295debcd8dde8a22f3373 /cplay.c | |
parent | daa3871b8b2001ffe87d86c147914aac27c0aaf8 (diff) |
cplay: use new offload sample rate representation.
Pass directly the sample rate value to struct snd_codec
instead of the ALSA enum.
Bug: 17398311.
Change-Id: Ic65f79759a623136fed8fd755bae39cee3550550
Diffstat (limited to 'cplay.c')
-rw-r--r-- | cplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |