diff options
author | Misael Lopez Cruz | 2013-07-31 21:47:00 -0500 |
---|---|---|
committer | Gerrit Code Review | 2013-08-05 16:03:14 -0500 |
commit | f3417227bcbf196237d4ae8094a64c336118fe21 (patch) | |
tree | 008e21176a45159d9df1eb471a5a233a45a7dad2 /audio | |
parent | 903e4994e3655721e766a1f706847f4c61aa6ad6 (diff) | |
download | device-ti-jacinto6evm-f3417227bcbf196237d4ae8094a64c336118fe21.tar.gz device-ti-jacinto6evm-f3417227bcbf196237d4ae8094a64c336118fe21.tar.xz device-ti-jacinto6evm-f3417227bcbf196237d4ae8094a64c336118fe21.zip |
audio: Enable pop reduction on HP output
High power output drivers have pop reduction mechanism that
consists of power-on delay and ramp-up step time. Power-on time
of 50ms can help reducing a large spike when output is first
enabled. Ramp-up step time introduces additional artifacts so
is not used.
Change-Id: I9df3ff0fcb670d04c6fd3babfbfec089f77c2e8c
Signed-off-by: Misael Lopez Cruz <misael.lopez@ti.com>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/audio_hw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/audio_hw.c b/audio/audio_hw.c index 4482b9a..ee7dea9 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c | |||
@@ -179,6 +179,8 @@ struct pcm_config pcm_config_playback = { | |||
179 | #define MIXER_LEFT_HP_DACL1_SWITCH "Left HP Mixer DACL1 Switch" | 179 | #define MIXER_LEFT_HP_DACL1_SWITCH "Left HP Mixer DACL1 Switch" |
180 | #define MIXER_RIGHT_HP_DACR1_SWITCH "Right HP Mixer DACR1 Switch" | 180 | #define MIXER_RIGHT_HP_DACR1_SWITCH "Right HP Mixer DACR1 Switch" |
181 | #define HP_PLAYBACK_VOLUME "HP DAC Playback Volume" | 181 | #define HP_PLAYBACK_VOLUME "HP DAC Playback Volume" |
182 | #define HP_DRIVER_POWER_ON_TIME "Output Driver Power-On time" | ||
183 | #define HP_DRIVER_50MS_DELAY "50ms" | ||
182 | 184 | ||
183 | /* Line-Out specific */ | 185 | /* Line-Out specific */ |
184 | #define MIXER_LINE_PLAYBACK_SWITCH "Line Playback Switch" | 186 | #define MIXER_LINE_PLAYBACK_SWITCH "Line Playback Switch" |
@@ -220,6 +222,7 @@ static struct route_setting rs_defaults[] = { | |||
220 | RS_INT(MIXER_RIGHT_HP_DACR1_SWITCH, 1), | 222 | RS_INT(MIXER_RIGHT_HP_DACR1_SWITCH, 1), |
221 | RS_INT(MIXER_HP_PLAYBACK_SWITCH, 1), | 223 | RS_INT(MIXER_HP_PLAYBACK_SWITCH, 1), |
222 | RS_INT(HP_PLAYBACK_VOLUME, OUTPUT_DB_TO_VAL(0)), /* 0 dB */ | 224 | RS_INT(HP_PLAYBACK_VOLUME, OUTPUT_DB_TO_VAL(0)), /* 0 dB */ |
225 | RS_STR(HP_DRIVER_POWER_ON_TIME, HP_DRIVER_50MS_DELAY), | ||
223 | 226 | ||
224 | RS_INT(MIXER_LEFT_LINE_DACL1_SWITCH, 1), | 227 | RS_INT(MIXER_LEFT_LINE_DACL1_SWITCH, 1), |
225 | RS_INT(MIXER_RIGHT_LINE_DACR1_SWITCH, 1), | 228 | RS_INT(MIXER_RIGHT_LINE_DACR1_SWITCH, 1), |