diff options
Diffstat (limited to 'firmware/export/hosted_codec.h')
-rw-r--r-- | firmware/export/hosted_codec.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/firmware/export/hosted_codec.h b/firmware/export/hosted_codec.h index 50d1281394..62a4d57613 100644 --- a/firmware/export/hosted_codec.h +++ b/firmware/export/hosted_codec.h | |||
@@ -25,6 +25,27 @@ | |||
25 | #define VOLUME_MAX 0 | 25 | #define VOLUME_MAX 0 |
26 | 26 | ||
27 | #define AUDIOHW_CAPS (MONO_VOL_CAP) | 27 | #define AUDIOHW_CAPS (MONO_VOL_CAP) |
28 | AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -100, 0, 0) | 28 | AUDIOHW_SETTING(VOLUME, "dB", 0, 1,-100, 0, 0) |
29 | |||
30 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) | ||
31 | /* Bass and treble tone controls */ | ||
32 | #ifdef AUDIOHW_HAVE_BASS | ||
33 | AUDIOHW_SETTING(BASS, "dB", 0, 1, -24, 24, 0) | ||
34 | #endif | ||
35 | #ifdef AUDIOHW_HAVE_TREBLE | ||
36 | AUDIOHW_SETTING(TREBLE, "dB", 0, 1, -24, 24, 0) | ||
37 | #endif | ||
38 | #if defined(HAVE_RECORDING) | ||
39 | AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1,-128, 96, 0) | ||
40 | AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1,-128, 96, 0) | ||
41 | AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1,-128, 108, 16) | ||
42 | #endif | ||
43 | #if defined(AUDIOHW_HAVE_BASS_CUTOFF) | ||
44 | AUDIOHW_SETTING(BASS_CUTOFF, "", 0, 1, 1, 4, 1) | ||
45 | #endif | ||
46 | #if defined(AUDIOHW_HAVE_TREBLE_CUTOFF) | ||
47 | AUDIOHW_SETTING(TREBLE_CUTOFF, "", 0, 1, 1, 4, 1) | ||
48 | #endif | ||
49 | /* CONFIG_PLATFORM & PLATFORM_ANDROID */ | ||
29 | 50 | ||
30 | #endif /* HOSTED_CODEC_H */ \ No newline at end of file | 51 | #endif /* HOSTED_CODEC_H */ \ No newline at end of file |