diff options
Diffstat (limited to 'firmware/drivers/audio/sdl.c')
-rw-r--r-- | firmware/drivers/audio/sdl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/drivers/audio/sdl.c b/firmware/drivers/audio/sdl.c index 7d6d7452df..021a65b9f8 100644 --- a/firmware/drivers/audio/sdl.c +++ b/firmware/drivers/audio/sdl.c | |||
@@ -34,11 +34,15 @@ extern void pcm_set_mixer_volume(int); | |||
34 | void audiohw_set_volume(int volume) | 34 | void audiohw_set_volume(int volume) |
35 | { | 35 | { |
36 | #if CONFIG_CODEC == SWCODEC | 36 | #if CONFIG_CODEC == SWCODEC |
37 | #if (CONFIG_PLATFORM & PLATFORM_MAEMO5) | ||
38 | pcm_set_mixer_volume(volume); | ||
39 | #else | ||
37 | pcm_set_mixer_volume( | 40 | pcm_set_mixer_volume( |
38 | SDL_MIX_MAXVOLUME * ((volume - VOLUME_MIN) / 10) / (VOLUME_RANGE / 10)); | 41 | SDL_MIX_MAXVOLUME * ((volume - VOLUME_MIN) / 10) / (VOLUME_RANGE / 10)); |
42 | #endif /* (CONFIG_PLATFORM & PLATFORM_MAEMO) */ | ||
39 | #else | 43 | #else |
40 | (void)volume; | 44 | (void)volume; |
41 | #endif | 45 | #endif /* CONFIG_CODEC == SWCODEC */ |
42 | } | 46 | } |
43 | 47 | ||
44 | const struct sound_settings_info audiohw_settings[] = { | 48 | const struct sound_settings_info audiohw_settings[] = { |