summaryrefslogtreecommitdiff
path: root/firmware/export/audiohw.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/audiohw.h')
-rw-r--r--firmware/export/audiohw.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/firmware/export/audiohw.h b/firmware/export/audiohw.h
index d450613aff..d11a3b5181 100644
--- a/firmware/export/audiohw.h
+++ b/firmware/export/audiohw.h
@@ -26,6 +26,8 @@
26/* define some audiohw caps */ 26/* define some audiohw caps */
27#define TREBLE_CAP (1 << 0) 27#define TREBLE_CAP (1 << 0)
28#define BASS_CAP (1 << 1) 28#define BASS_CAP (1 << 1)
29#define BALANCE_CAP (1 << 2)
30#define CLIPPING_CAP (1 << 3)
29 31
30#ifdef HAVE_UDA1380 32#ifdef HAVE_UDA1380
31#include "uda1380.h" 33#include "uda1380.h"
@@ -62,6 +64,14 @@
62#if (AUDIOHW_CAPS & BASS_CAP) 64#if (AUDIOHW_CAPS & BASS_CAP)
63#define AUDIOHW_HAVE_BASS 65#define AUDIOHW_HAVE_BASS
64#endif 66#endif
67
68#if (AUDIOHW_CAPS & BALANCE_CAP)
69#define AUDIOHW_HAVE_BALANCE
70#endif
71
72#if (AUDIOHW_CAPS & CLIPPING_CAP)
73#define AUDIOHW_HAVE_CLIPPING
74#endif
65#endif /* AUDIOHW_CAPS */ 75#endif /* AUDIOHW_CAPS */
66 76
67enum { 77enum {
@@ -144,6 +154,26 @@ void audiohw_postinit(void);
144 */ 154 */
145void audiohw_close(void); 155void audiohw_close(void);
146 156
157#ifdef AUDIOHW_HAVE_CLIPPING
158 /**
159 * Set new volume value
160 * @param val to set.
161 * NOTE: AUDIOHW_CAPS need to contain
162 * CLIPPING_CAP
163 */
164void audiohw_set_volume(int val);
165#endif
166
167#ifdef AUDIOHW_HAVE_BALANCE
168/**
169 * Set new balance value
170 * @param val to set.
171 * NOTE: AUDIOHW_CAPS need to contain
172 * BALANCE_CAP
173 */
174void audiohw_set_balance(int val);
175#endif
176
147/** 177/**
148 * Mute or enable sound. 178 * Mute or enable sound.
149 * @param mute true or false. 179 * @param mute true or false.