diff options
author | Marcin Bukat <marcin.bukat@gmail.com> | 2018-06-20 12:19:33 +0200 |
---|---|---|
committer | Marcin Bukat <marcin.bukat@gmail.com> | 2018-06-20 12:19:33 +0200 |
commit | 706e31b415bc5b8c191f2f6d225a09feed2cf53b (patch) | |
tree | 4f9aabebe91f3015080dae6eb2613dc90c6f05f9 | |
parent | 20bdfa8209a26b01e0b428205cbc5038ac8079a1 (diff) | |
download | rockbox-706e31b.tar.gz rockbox-706e31b.zip |
Volume adjustment in WPS ignored AUDIOHW_SETTING values
AUDIOHW_SETTING() defines number of decimals and step size.
This is taken into account in sound menu but ignored in WPS.
This was not a problem so far since all drivers used 0 decimal
places and step size equal 1.
Change-Id: I3466d6651c46a24cb5114eae1e1747293a76a1a6
-rw-r--r-- | apps/gui/wps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 31e54639cc..c27c434d12 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -853,11 +853,11 @@ long gui_wps_show(void) break; case ACTION_WPS_VOLUP: - global_settings.volume++; + global_settings.volume += sound_steps(SOUND_VOLUME); vol_changed = true; break; case ACTION_WPS_VOLDOWN: - global_settings.volume--; + global_settings.volume -= sound_steps(SOUND_VOLUME); vol_changed = true; break; /* fast forward |