From 39a0d8bf86da56b9725682c25aa9fd76e91badad Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sun, 25 Oct 2020 19:01:57 -0400 Subject: x3ii/x20/rocker: Fix volume scaling. Change-Id: Ie70d709b4c18f16cdd67aa05d9183b4ace2e66b4 --- firmware/export/rocker_codec.h | 2 +- firmware/export/xduoolinux_codec.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/export') 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 -- cgit v1.2.3