summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/pcm-alsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/pcm-alsa.c')
-rw-r--r--firmware/target/hosted/pcm-alsa.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/hosted/pcm-alsa.c b/firmware/target/hosted/pcm-alsa.c
index 1385f75b34..715af58fd9 100644
--- a/firmware/target/hosted/pcm-alsa.c
+++ b/firmware/target/hosted/pcm-alsa.c
@@ -75,7 +75,7 @@ static snd_pcm_sframes_t buffer_size = MIX_FRAME_SAMPLES * 32; /* ~16k */
75static snd_pcm_sframes_t period_size = MIX_FRAME_SAMPLES * 4; /* ~4k */ 75static snd_pcm_sframes_t period_size = MIX_FRAME_SAMPLES * 4; /* ~4k */
76static short *frames; 76static short *frames;
77 77
78static const char *pcm_data = 0; 78static const void *pcm_data = 0;
79static size_t pcm_size = 0; 79static size_t pcm_size = 0;
80 80
81#ifdef USE_ASYNC_CALLBACK 81#ifdef USE_ASYNC_CALLBACK
@@ -223,8 +223,8 @@ static bool fill_frames(void)
223 if (!pcm_size) 223 if (!pcm_size)
224 { 224 {
225 new_buffer = true; 225 new_buffer = true;
226 if (!pcm_play_dma_complete_callback(PCM_DMAST_OK, 226 if (!pcm_play_dma_complete_callback(PCM_DMAST_OK, &pcm_data,
227 (const void **)&pcm_data, &pcm_size)) 227 &pcm_size))
228 { 228 {
229 return false; 229 return false;
230 } 230 }