diff options
Diffstat (limited to 'firmware/export/audiohw.h')
-rw-r--r-- | firmware/export/audiohw.h | 15 |
1 files changed, 15 insertions, 0 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 | ||
77 | enum { | 82 | enum { |
@@ -164,6 +169,16 @@ void audiohw_close(void); | |||
164 | void audiohw_set_volume(int val); | 169 | void 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 | */ | ||
179 | void 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 |