From 9e71fd16a55bd69f2cf3345b5ab3459b29c1832d Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 15 Apr 2013 14:00:48 -0400 Subject: Keep fixing 0c7b787 stuff Change-Id: I0678d3307fbcad32156f9f4e0f8b90eed5a20d92 --- firmware/export/hosted_codec.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'firmware/export/hosted_codec.h') 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 @@ #define VOLUME_MAX 0 #define AUDIOHW_CAPS (MONO_VOL_CAP) -AUDIOHW_SETTING(VOLUME, "dB", 0, 1, -100, 0, 0) +AUDIOHW_SETTING(VOLUME, "dB", 0, 1,-100, 0, 0) + +#if (CONFIG_PLATFORM & PLATFORM_ANDROID) +/* Bass and treble tone controls */ +#ifdef AUDIOHW_HAVE_BASS +AUDIOHW_SETTING(BASS, "dB", 0, 1, -24, 24, 0) +#endif +#ifdef AUDIOHW_HAVE_TREBLE +AUDIOHW_SETTING(TREBLE, "dB", 0, 1, -24, 24, 0) +#endif +#if defined(HAVE_RECORDING) +AUDIOHW_SETTING(LEFT_GAIN, "dB", 1, 1,-128, 96, 0) +AUDIOHW_SETTING(RIGHT_GAIN, "dB", 1, 1,-128, 96, 0) +AUDIOHW_SETTING(MIC_GAIN, "dB", 1, 1,-128, 108, 16) +#endif +#if defined(AUDIOHW_HAVE_BASS_CUTOFF) +AUDIOHW_SETTING(BASS_CUTOFF, "", 0, 1, 1, 4, 1) +#endif +#if defined(AUDIOHW_HAVE_TREBLE_CUTOFF) +AUDIOHW_SETTING(TREBLE_CUTOFF, "", 0, 1, 1, 4, 1) +#endif +/* CONFIG_PLATFORM & PLATFORM_ANDROID */ #endif /* HOSTED_CODEC_H */ \ No newline at end of file -- cgit v1.2.3