summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/sdl
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/sdl
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/sdl')
-rw-r--r--firmware/target/hosted/sdl/pcm-sdl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/hosted/sdl/pcm-sdl.c b/firmware/target/hosted/sdl/pcm-sdl.c
index 2c535b2dc5..bd56189f02 100644
--- a/firmware/target/hosted/sdl/pcm-sdl.c
+++ b/firmware/target/hosted/sdl/pcm-sdl.c
@@ -56,7 +56,7 @@ static int sim_volume = 0;
56#if CONFIG_CODEC == SWCODEC 56#if CONFIG_CODEC == SWCODEC
57static int cvt_status = -1; 57static int cvt_status = -1;
58 58
59static const Uint8* pcm_data; 59static const void *pcm_data;
60static size_t pcm_data_size; 60static size_t pcm_data_size;
61static size_t pcm_sample_bytes; 61static size_t pcm_sample_bytes;
62static size_t pcm_channel_bytes; 62static size_t pcm_channel_bytes;
@@ -245,8 +245,8 @@ static void sdl_audio_callback(struct pcm_udata *udata, Uint8 *stream, int len)
245 245
246 /* Audio card wants more? Get some more then. */ 246 /* Audio card wants more? Get some more then. */
247 while (len > 0) { 247 while (len > 0) {
248 new_buffer = pcm_play_dma_complete_callback(PCM_DMAST_OK, 248 new_buffer = pcm_play_dma_complete_callback(PCM_DMAST_OK, &pcm_data,
249 (const void **)&pcm_data, &pcm_data_size); 249 &pcm_data_size);
250 250
251 if (!new_buffer) { 251 if (!new_buffer) {
252 DEBUGF("sdl_audio_callback: No Data.\n"); 252 DEBUGF("sdl_audio_callback: No Data.\n");