summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/pcm-alsa.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-03-04 08:52:50 -0500
committerMichael Sevakis <jethead71@rockbox.org>2012-03-04 08:52:50 -0500
commitcd8e11b463bf57f832bf44d350238057db3e2d6d (patch)
tree91b7511ec5a6fa47c99d84518608cd3b90f4d680 /firmware/target/hosted/pcm-alsa.c
parentf6e17e86fed65cb503199691d69973e83c45ddbf (diff)
downloadrockbox-cd8e11b463bf57f832bf44d350238057db3e2d6d.tar.gz
rockbox-cd8e11b463bf57f832bf44d350238057db3e2d6d.zip
Tweak some PCM drivers for less typecasting with the data pointer.
Yeah, sizeof (void) here with GCC is 1. If something has a problem with that, we'll set it straight. Change-Id: I9ad3eee75dd440f6404a04a501d1533c8bc18ba9
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 }