From cd8e11b463bf57f832bf44d350238057db3e2d6d Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sun, 4 Mar 2012 08:52:50 -0500 Subject: 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 --- firmware/target/hosted/sdl/pcm-sdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/target/hosted/sdl') 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; #if CONFIG_CODEC == SWCODEC static int cvt_status = -1; -static const Uint8* pcm_data; +static const void *pcm_data; static size_t pcm_data_size; static size_t pcm_sample_bytes; static size_t pcm_channel_bytes; @@ -245,8 +245,8 @@ static void sdl_audio_callback(struct pcm_udata *udata, Uint8 *stream, int len) /* Audio card wants more? Get some more then. */ while (len > 0) { - new_buffer = pcm_play_dma_complete_callback(PCM_DMAST_OK, - (const void **)&pcm_data, &pcm_data_size); + new_buffer = pcm_play_dma_complete_callback(PCM_DMAST_OK, &pcm_data, + &pcm_data_size); if (!new_buffer) { DEBUGF("sdl_audio_callback: No Data.\n"); -- cgit v1.2.3