Allow software based volume control (#3556)

* Allow software based volume control
- enable it for AR9X
- rename "HARDWARE_VOLUME" defines to "MASTER_VOLUME"
- adjust build-firmware.py and fwoptions.py

* Software based volume control: Do it right

* whitespace cleanup

* software volume: cleanup/revert some leftovers of undone changes
This commit is contained in:
reichi
2016-06-09 22:50:06 +02:00
committed by Bertrand Songis
parent beb21ab7db
commit 0c926e5d19
9 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -163,7 +163,7 @@ void audioEnd()
void setScaledVolume(uint8_t volume)
{
#if !defined(NO_HARDWARE_VOLUME)
#if !defined(SOFTWARE_VOLUME)
volumeRequired = volumeScale[min<uint8_t>(volume, VOLUME_LEVEL_MAX)];
#ifndef AR9X
__disable_irq() ;