-rw-r--r-- | audio_hw.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1705,12 +1705,13 @@ if (!(adev->out_device & AUDIO_DEVICE_OUT_ALL_SCO)) { if (out->is_tv_platform == 1) { int16_t *tmp_buffer = (int16_t *)out->audioeffect_tmp_buffer; memcpy((void *)tmp_buffer, (void *)in_buffer, out_frames * 4); - audio_effect_process(stream, tmp_buffer, out_frames); + ALOGV("Amlogic - disable audio_data_process(), and replace tmp_buffer data with in_buffer data.\n"); + //audio_effect_process(stream, tmp_buffer, out_frames); for (i = 0; i < out_frames; i ++) { out->tmp_buffer_8ch[8 * i] = ((int32_t)(in_buffer[2 * i])) << 16; out->tmp_buffer_8ch[8 * i + 1] = ((int32_t)(in_buffer[2 * i + 1])) << 16; - out->tmp_buffer_8ch[8 * i + 2] = ((int32_t)(tmp_buffer[2 * i])) << 16; - out->tmp_buffer_8ch[8 * i + 3] = ((int32_t)(tmp_buffer[2 * i + 1])) << 16; + out->tmp_buffer_8ch[8 * i + 2] = ((int32_t)(in_buffer[2 * i])) << 16; + out->tmp_buffer_8ch[8 * i + 3] = ((int32_t)(in_buffer[2 * i + 1])) << 16; out->tmp_buffer_8ch[8 * i + 4] = 0; out->tmp_buffer_8ch[8 * i + 5] = 0; out->tmp_buffer_8ch[8 * i + 6] = 0; |