summaryrefslogtreecommitdiff
path: root/firmware/export/mas35xx.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/mas35xx.h')
-rw-r--r--firmware/export/mas35xx.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/firmware/export/mas35xx.h b/firmware/export/mas35xx.h
index dbe9d38a37..d28db0fb33 100644
--- a/firmware/export/mas35xx.h
+++ b/firmware/export/mas35xx.h
@@ -24,14 +24,22 @@
24 24
25#include "config.h" 25#include "config.h"
26 26
27#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP)
28
29#if CONFIG_CODEC == MAS3507D 27#if CONFIG_CODEC == MAS3507D
28
30#define VOLUME_MIN -780 29#define VOLUME_MIN -780
31#define VOLUME_MAX 180 30#define VOLUME_MAX 180
32#else 31#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP)
32
33#else /* CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F */
34
35/* MAS3587F and MAS3539F handle clipping prevention internally so we do not need
36 * the prescaler -> CLIPPING_CAP
37 */
38
33#define VOLUME_MIN -400 39#define VOLUME_MIN -400
34#define VOLUME_MAX 600 40#define VOLUME_MAX 600
41#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | BALANCE_CAP | CLIPPING_CAP)
42
35#endif 43#endif
36 44
37 45