summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/audio/sdl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/drivers/audio/sdl.c b/firmware/drivers/audio/sdl.c
index 7d6d745..021a65b 100644
--- a/firmware/drivers/audio/sdl.c
+++ b/firmware/drivers/audio/sdl.c
@@ -34,11 +34,15 @@ extern void pcm_set_mixer_volume(int);
void audiohw_set_volume(int volume)
{
#if CONFIG_CODEC == SWCODEC
+#if (CONFIG_PLATFORM & PLATFORM_MAEMO5)
+ pcm_set_mixer_volume(volume);
+#else
pcm_set_mixer_volume(
SDL_MIX_MAXVOLUME * ((volume - VOLUME_MIN) / 10) / (VOLUME_RANGE / 10));
+#endif /* (CONFIG_PLATFORM & PLATFORM_MAEMO) */
#else
(void)volume;
-#endif
+#endif /* CONFIG_CODEC == SWCODEC */
}
const struct sound_settings_info audiohw_settings[] = {