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
This commit is contained in:
Marcin Bukat 2018-06-20 12:19:33 +02:00
parent 20bdfa8209
commit 706e31b415

View file

@ -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