summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/audiohw.h15
-rw-r--r--firmware/export/mas35xx.h2
-rw-r--r--firmware/export/uda1380.h2
3 files changed, 17 insertions, 2 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h
index d11a3b5181..4c9271e03e 100644
--- a/firmware/export/audiohw.h
+++ b/firmware/export/audiohw.h
@@ -28,6 +28,7 @@
28#define BASS_CAP (1 << 1) 28#define BASS_CAP (1 << 1)
29#define BALANCE_CAP (1 << 2) 29#define BALANCE_CAP (1 << 2)
30#define CLIPPING_CAP (1 << 3) 30#define CLIPPING_CAP (1 << 3)
31#define PRESCALER_CAP (1 << 4)
31 32
32#ifdef HAVE_UDA1380 33#ifdef HAVE_UDA1380
33#include "uda1380.h" 34#include "uda1380.h"
@@ -72,6 +73,10 @@
72#if (AUDIOHW_CAPS & CLIPPING_CAP) 73#if (AUDIOHW_CAPS & CLIPPING_CAP)
73#define AUDIOHW_HAVE_CLIPPING 74#define AUDIOHW_HAVE_CLIPPING
74#endif 75#endif
76
77#if (AUDIOHW_CAPS & PRESCALER_CAP)
78#define AUDIOHW_HAVE_PRESCALER
79#endif
75#endif /* AUDIOHW_CAPS */ 80#endif /* AUDIOHW_CAPS */
76 81
77enum { 82enum {
@@ -164,6 +169,16 @@ void audiohw_close(void);
164void audiohw_set_volume(int val); 169void audiohw_set_volume(int val);
165#endif 170#endif
166 171
172#ifdef AUDIOHW_HAVE_PRESCALER
173/**
174 * Set new prescaler value.
175 * @param val to set.
176 * NOTE: AUDIOHW_CAPS need to contain
177 * PRESCALER_CAP
178 */
179void audiohw_set_prescaler(int val);
180#endif
181
167#ifdef AUDIOHW_HAVE_BALANCE 182#ifdef AUDIOHW_HAVE_BALANCE
168/** 183/**
169 * Set new balance value 184 * Set new balance value
diff --git a/firmware/export/mas35xx.h b/firmware/export/mas35xx.h
index d28db0fb33..a0da03d0a4 100644
--- a/firmware/export/mas35xx.h
+++ b/firmware/export/mas35xx.h
@@ -28,7 +28,7 @@
28 28
29#define VOLUME_MIN -780 29#define VOLUME_MIN -780
30#define VOLUME_MAX 180 30#define VOLUME_MAX 180
31#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP) 31#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | PRESCALER_CAP)
32 32
33#else /* CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F */ 33#else /* CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F */
34 34
diff --git a/firmware/export/uda1380.h b/firmware/export/uda1380.h
index c23f95265b..e0125d8d63 100644
--- a/firmware/export/uda1380.h
+++ b/firmware/export/uda1380.h
@@ -24,7 +24,7 @@
24#define VOLUME_MIN -840 24#define VOLUME_MIN -840
25#define VOLUME_MAX 0 25#define VOLUME_MAX 0
26 26
27#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP) 27#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | PRESCALER_CAP)
28 28
29extern int tenthdb2master(int db); 29extern int tenthdb2master(int db);
30extern int tenthdb2mixer(int db); 30extern int tenthdb2mixer(int db);