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 @@
#define BASS_CAP (1 << 1)
#define BALANCE_CAP (1 << 2)
#define CLIPPING_CAP (1 << 3)
+#define PRESCALER_CAP (1 << 4)
#ifdef HAVE_UDA1380
#include "uda1380.h"
@@ -72,6 +73,10 @@
#if (AUDIOHW_CAPS & CLIPPING_CAP)
#define AUDIOHW_HAVE_CLIPPING
#endif
+
+#if (AUDIOHW_CAPS & PRESCALER_CAP)
+#define AUDIOHW_HAVE_PRESCALER
+#endif
#endif /* AUDIOHW_CAPS */
enum {
@@ -164,6 +169,16 @@ void audiohw_close(void);
void audiohw_set_volume(int val);
#endif
+#ifdef AUDIOHW_HAVE_PRESCALER
+/**
+ * Set new prescaler value.
+ * @param val to set.
+ * NOTE: AUDIOHW_CAPS need to contain
+ * PRESCALER_CAP
+ */
+void audiohw_set_prescaler(int val);
+#endif
+
#ifdef AUDIOHW_HAVE_BALANCE
/**
* 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 @@
#define VOLUME_MIN -780
#define VOLUME_MAX 180
-#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP)
+#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | PRESCALER_CAP)
#else /* CONFIG_CODEC == MAS3587F) || (CONFIG_CODEC == MAS3539F */
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 @@
#define VOLUME_MIN -840
#define VOLUME_MAX 0
-#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP)
+#define AUDIOHW_CAPS (BASS_CAP | TREBLE_CAP | PRESCALER_CAP)
extern int tenthdb2master(int db);
extern int tenthdb2mixer(int db);