summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-10-25 19:01:57 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-10-26 00:12:54 +0000
commit39a0d8bf86da56b9725682c25aa9fd76e91badad (patch)
tree6ae850f23f386ca780285e8228e8ae80f659ff77
parent49c4577fa62db5a7d18b01c3e2a3eac205fb1892 (diff)
downloadrockbox-39a0d8bf86da56b9725682c25aa9fd76e91badad.tar.gz
rockbox-39a0d8bf86da56b9725682c25aa9fd76e91badad.tar.bz2
rockbox-39a0d8bf86da56b9725682c25aa9fd76e91badad.zip
x3ii/x20/rocker: Fix volume scaling.
Change-Id: Ie70d709b4c18f16cdd67aa05d9183b4ace2e66b4
-rw-r--r--firmware/export/rocker_codec.h2
-rw-r--r--firmware/export/xduoolinux_codec.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/rocker_codec.h b/firmware/export/rocker_codec.h
index 428fd7e890..48e280a4e4 100644
--- a/firmware/export/rocker_codec.h
+++ b/firmware/export/rocker_codec.h
@@ -2,7 +2,7 @@
#define __ROCKER_CODEC__
#define AUDIOHW_CAPS 0
-AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -127, 0, -30)
+AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -102*10, 0, -30*10)
#endif
#define AUDIOHW_MUTE_ON_PAUSE
diff --git a/firmware/export/xduoolinux_codec.h b/firmware/export/xduoolinux_codec.h
index cc401555ef..744be58e30 100644
--- a/firmware/export/xduoolinux_codec.h
+++ b/firmware/export/xduoolinux_codec.h
@@ -2,7 +2,7 @@
#define __XDUOOLINUX_CODEC__
#define AUDIOHW_CAPS (LINEOUT_CAP | FILTER_ROLL_OFF_CAP)
-AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -127, 0, -30)
+AUDIOHW_SETTING(VOLUME, "dB", 1, 5, -102*10, 0, -30*10)
AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 4, 0)
#endif