diff options
author | Simon Wilson <simonwilson@google.com> | 2011-09-06 20:08:51 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-09-06 20:08:53 -0700 |
commit | 41f2d8f07b1f698ed5f5b49dd287b14394da3231 (patch) | |
tree | f0be5fad44bab8f1f5db6c4d330e5256f0ed50d3 /audio | |
parent | 6fbf877df8495e084cab3e0d0916e6fcb19c902d (diff) | |
download | device_samsung_tuna-41f2d8f07b1f698ed5f5b49dd287b14394da3231.zip device_samsung_tuna-41f2d8f07b1f698ed5f5b49dd287b14394da3231.tar.gz device_samsung_tuna-41f2d8f07b1f698ed5f5b49dd287b14394da3231.tar.bz2 |
audio: enable 450Hz high-pass filter for speaker
This filters out frequencies that can damage the speaker.
Change-Id: I35946c9ee3e80be673643ef40129e7e5214a0d8b
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio_hw.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 74cee09..fae3e00 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -40,6 +40,8 @@ #include "ril_interface.h" /* Mixer control names */ +#define MIXER_DL2_LEFT_EQUALIZER "DL2 Left Equalizer" +#define MIXER_DL2_RIGHT_EQUALIZER "DL2 Right Equalizer" #define MIXER_DL1_MEDIA_PLAYBACK_VOLUME "DL1 Media Playback Volume" #define MIXER_DL1_VOICE_PLAYBACK_VOLUME "DL1 Voice Playback Volume" #define MIXER_DL2_MEDIA_PLAYBACK_VOLUME "DL2 Media Playback Volume" @@ -90,6 +92,7 @@ #define MIXER_AMIC1 "AMic1" #define MIXER_BT_LEFT "BT Left" #define MIXER_BT_RIGHT "BT Right" +#define MIXER_450HZ_HIGH_PASS "450Hz High-pass" /* ALSA ports for OMAP4 */ #define PORT_MM 0 @@ -188,6 +191,14 @@ struct route_setting struct route_setting defaults[] = { /* general */ { + .ctl_name = MIXER_DL2_LEFT_EQUALIZER, + .strval = MIXER_450HZ_HIGH_PASS, + }, + { + .ctl_name = MIXER_DL2_RIGHT_EQUALIZER, + .strval = MIXER_450HZ_HIGH_PASS, + }, + { .ctl_name = MIXER_DL1_MEDIA_PLAYBACK_VOLUME, .intval = MIXER_ABE_GAIN_0DB, }, |