diff options
Diffstat (limited to 'firmware/export/audiohw.h')
-rw-r--r-- | firmware/export/audiohw.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h index 91df2dd8b9..781bc12f8e 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -65,6 +65,20 @@ | |||
65 | #include "ak4537.h" | 65 | #include "ak4537.h" |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | |||
69 | |||
70 | #define ONE_DB 10 | ||
71 | |||
72 | #if !defined(VOLUME_MIN) && !defined(VOLUME_MAX) | ||
73 | #warning define for VOLUME_MIN and VOLUME_MAX is missing | ||
74 | #define VOLUME_MIN -700 | ||
75 | #define VOLUME_MAX 0 | ||
76 | #endif | ||
77 | |||
78 | /* volume/balance/treble/bass interdependency main part */ | ||
79 | #define VOLUME_RANGE (VOLUME_MAX - VOLUME_MIN) | ||
80 | |||
81 | |||
68 | /* convert caps into defines */ | 82 | /* convert caps into defines */ |
69 | #ifdef AUDIOHW_CAPS | 83 | #ifdef AUDIOHW_CAPS |
70 | #if (AUDIOHW_CAPS & TREBLE_CAP) | 84 | #if (AUDIOHW_CAPS & TREBLE_CAP) |