summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-09-22 11:21:35 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-09-22 11:22:13 +0200
commit9c83e07d8b28a348f3cab0d540f91ec6f03d6e34 (patch)
treed09484fdeca7847ee4e4a69c918ea28e7113ac21
parent638eaeb88405ffa125db090015610199625d15b8 (diff)
downloadrockbox-9c83e07d8b28a348f3cab0d540f91ec6f03d6e34.tar.gz
rockbox-9c83e07d8b28a348f3cab0d540f91ec6f03d6e34.zip
Fix bug in pcm-alsa.c
I introduced the bug by mistake when adding support for 32-bit sample rate. Change-Id: I5ac53917c95327672284707b69c59bb98d1aecd7
-rw-r--r--firmware/target/hosted/pcm-alsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/pcm-alsa.c b/firmware/target/hosted/pcm-alsa.c
index 12de685e73..c84679e9f3 100644
--- a/firmware/target/hosted/pcm-alsa.c
+++ b/firmware/target/hosted/pcm-alsa.c
@@ -287,7 +287,7 @@ static bool fill_frames(void)
287 else 287 else
288 { 288 {
289 /* Rockbox and PCM have same format: memcopy */ 289 /* Rockbox and PCM have same format: memcopy */
290 memcpy(&frames[2*(period_size-frames_left)], pcm_data, copy_n); 290 memcpy(&frames[2*(period_size-frames_left)], pcm_data, copy_n * 4);
291 } 291 }
292 pcm_data += copy_n*4; 292 pcm_data += copy_n*4;
293 pcm_size -= copy_n*4; 293 pcm_size -= copy_n*4;