summaryrefslogtreecommitdiffstats
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.tar.bz2
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 */
static snd_pcm_sframes_t period_size = MIX_FRAME_SAMPLES * 4; /* ~4k */
static short *frames;
-static const char *pcm_data = 0;
+static const void *pcm_data = 0;
static size_t pcm_size = 0;
#ifdef USE_ASYNC_CALLBACK
@@ -223,8 +223,8 @@ static bool fill_frames(void)
if (!pcm_size)
{
new_buffer = true;
- if (!pcm_play_dma_complete_callback(PCM_DMAST_OK,
- (const void **)&pcm_data, &pcm_size))
+ if (!pcm_play_dma_complete_callback(PCM_DMAST_OK, &pcm_data,
+ &pcm_size))
{
return false;
}