diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config/erosqnative.h | 2 | ||||
-rw-r--r-- | firmware/export/es9018k2m.h | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/firmware/export/config/erosqnative.h b/firmware/export/config/erosqnative.h index c71f7ade49..4f87282f1f 100644 --- a/firmware/export/config/erosqnative.h +++ b/firmware/export/config/erosqnative.h | |||
@@ -63,6 +63,8 @@ | |||
63 | #define HAVE_EROS_QN_CODEC | 63 | #define HAVE_EROS_QN_CODEC |
64 | #define HAVE_SW_TONE_CONTROLS | 64 | #define HAVE_SW_TONE_CONTROLS |
65 | #define HAVE_SW_VOLUME_CONTROL | 65 | #define HAVE_SW_VOLUME_CONTROL |
66 | #define AUDIOHW_CAPS (FILTER_ROLL_OFF_CAP) | ||
67 | #define AUDIOHW_HAVE_SHORT_ROLL_OFF | ||
66 | 68 | ||
67 | /* use high-bitdepth volume scaling */ | 69 | /* use high-bitdepth volume scaling */ |
68 | #define PCM_NATIVE_BITDEPTH 24 | 70 | #define PCM_NATIVE_BITDEPTH 24 |
diff --git a/firmware/export/es9018k2m.h b/firmware/export/es9018k2m.h index 035a607030..2824fed505 100644 --- a/firmware/export/es9018k2m.h +++ b/firmware/export/es9018k2m.h | |||
@@ -25,6 +25,13 @@ | |||
25 | 25 | ||
26 | //====================================================================================== | 26 | //====================================================================================== |
27 | // ES9018K2M support stuff | 27 | // ES9018K2M support stuff |
28 | // Implement audiohw_* functions in audiohw-*.c. These functions are utilities which | ||
29 | // may be used there. | ||
30 | |||
31 | // AUDIOHW_SETTING(VOLUME, *) not set here, probably best to put it in device-specific *_codec.h | ||
32 | #ifdef AUDIOHW_HAVE_SHORT_ROLL_OFF | ||
33 | AUDIOHW_SETTING(FILTER_ROLL_OFF, "", 0, 1, 0, 3, 0) | ||
34 | #endif | ||
28 | 35 | ||
29 | #ifndef ES9018K2M_VOLUME_MIN | 36 | #ifndef ES9018K2M_VOLUME_MIN |
30 | # define ES9018K2M_VOLUME_MIN -1270 | 37 | # define ES9018K2M_VOLUME_MIN -1270 |
@@ -50,8 +57,11 @@ | |||
50 | #define ES9018K2M_REG16_VOLUME_R 16 | 57 | #define ES9018K2M_REG16_VOLUME_R 16 |
51 | #define ES9018K2M_REG21_GPIO_INPUT_SELECT 21 | 58 | #define ES9018K2M_REG21_GPIO_INPUT_SELECT 21 |
52 | 59 | ||
53 | /* writes volume levels to DAC over I2C */ | 60 | /* writes volume levels to DAC over I2C, asynchronously */ |
54 | void es9018k2m_set_volume(int vol_l, int vol_r); | 61 | void es9018k2m_set_volume_async(int vol_l, int vol_r); |
62 | |||
63 | /* write filter roll-off setting to DAC over I2C, synchronously */ | ||
64 | void es9018k2m_set_filter_roll_off(int value); | ||
55 | 65 | ||
56 | /* writes a single register */ | 66 | /* writes a single register */ |
57 | /* returns I2C_STATUS_OK upon success, I2C_STATUS_* errors upon error */ | 67 | /* returns I2C_STATUS_OK upon success, I2C_STATUS_* errors upon error */ |