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 8a46cbea78..d862c977db 100644 --- a/firmware/export/audiohw.h +++ b/firmware/export/audiohw.h | |||
@@ -41,6 +41,7 @@ | |||
41 | #define LIN_GAIN_CAP (1 << 11) | 41 | #define LIN_GAIN_CAP (1 << 11) |
42 | #define MIC_GAIN_CAP (1 << 12) | 42 | #define MIC_GAIN_CAP (1 << 12) |
43 | #define FILTER_ROLL_OFF_CAP (1 << 13) | 43 | #define FILTER_ROLL_OFF_CAP (1 << 13) |
44 | #define POWER_MODE_CAP (1 << 14) | ||
44 | 45 | ||
45 | /* Used by every driver to export its min/max/default values for its audio | 46 | /* Used by every driver to export its min/max/default values for its audio |
46 | settings. */ | 47 | settings. */ |
@@ -391,6 +392,10 @@ enum AUDIOHW_EQ_SETTINGS | |||
391 | #define AUDIOHW_HAVE_FILTER_ROLL_OFF | 392 | #define AUDIOHW_HAVE_FILTER_ROLL_OFF |
392 | #endif | 393 | #endif |
393 | 394 | ||
395 | #if (AUDIOHW_CAPS & POWER_MODE_CAP) | ||
396 | #define AUDIOHW_HAVE_POWER_MODE | ||
397 | #endif | ||
398 | |||
394 | #endif /* AUDIOHW_CAPS */ | 399 | #endif /* AUDIOHW_CAPS */ |
395 | 400 | ||
396 | #ifdef HAVE_SW_TONE_CONTROLS | 401 | #ifdef HAVE_SW_TONE_CONTROLS |
@@ -586,6 +591,16 @@ void audiohw_set_depth_3d(int val); | |||
586 | void audiohw_set_filter_roll_off(int val); | 591 | void audiohw_set_filter_roll_off(int val); |
587 | #endif | 592 | #endif |
588 | 593 | ||
594 | #ifdef AUDIOHW_HAVE_POWER_MODE | ||
595 | /** | ||
596 | * Set DAC's power saving mode. | ||
597 | * @param enable 0 - highest performance, 1 - battery saving | ||
598 | * NOTE: AUDIOHW_CAPS need to contain | ||
599 | * POWER_MODE_CAP | ||
600 | */ | ||
601 | void audiohw_set_power_mode(int mode); | ||
602 | #endif | ||
603 | |||
589 | void audiohw_set_frequency(int fsel); | 604 | void audiohw_set_frequency(int fsel); |
590 | 605 | ||
591 | #ifdef HAVE_RECORDING | 606 | #ifdef HAVE_RECORDING |