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 | b596286419fd722b524a430fe9c2c4306b9ba132 (patch) | |
tree | 111b5b957efb4bf2c0240c7c2d91dd12192a9c42 /audio | |
parent | f71365c6314829e6f8efcbd936af94537dbfc81e (diff) | |
download | device_samsung_tuna-b596286419fd722b524a430fe9c2c4306b9ba132.zip device_samsung_tuna-b596286419fd722b524a430fe9c2c4306b9ba132.tar.gz device_samsung_tuna-b596286419fd722b524a430fe9c2c4306b9ba132.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, }, |