Loading hal/audio_hw.c +6 −2 Original line number Diff line number Diff line Loading @@ -3039,8 +3039,12 @@ static int out_flush(struct audio_stream_out* stream) if (is_offload_usecase(out->usecase)) { ALOGD("copl(%p):calling compress flush", out); lock_output_stream(out); if (out->offload_state == OFFLOAD_STATE_PAUSED) { stop_compressed_output_l(out); out->written = 0; } else { ALOGW("%s called in invalid state %d", __func__, out->offload_state); } pthread_mutex_unlock(&out->lock); ALOGD("copl(%p):out of compress flush", out); return 0; Loading hal/voice.c +0 −3 Original line number Diff line number Diff line Loading @@ -118,9 +118,6 @@ int voice_stop_usecase(struct audio_device *adev, audio_usecase_t usecase_id) session->state.current = CALL_INACTIVE; if (!voice_is_call_state_active(adev)) adev->voice.in_call = false; /* Disable sidetone only when no calls are active */ if (!voice_is_call_state_active(adev)) voice_set_sidetone(adev, uc_info->out_snd_device, false); Loading Loading
hal/audio_hw.c +6 −2 Original line number Diff line number Diff line Loading @@ -3039,8 +3039,12 @@ static int out_flush(struct audio_stream_out* stream) if (is_offload_usecase(out->usecase)) { ALOGD("copl(%p):calling compress flush", out); lock_output_stream(out); if (out->offload_state == OFFLOAD_STATE_PAUSED) { stop_compressed_output_l(out); out->written = 0; } else { ALOGW("%s called in invalid state %d", __func__, out->offload_state); } pthread_mutex_unlock(&out->lock); ALOGD("copl(%p):out of compress flush", out); return 0; Loading
hal/voice.c +0 −3 Original line number Diff line number Diff line Loading @@ -118,9 +118,6 @@ int voice_stop_usecase(struct audio_device *adev, audio_usecase_t usecase_id) session->state.current = CALL_INACTIVE; if (!voice_is_call_state_active(adev)) adev->voice.in_call = false; /* Disable sidetone only when no calls are active */ if (!voice_is_call_state_active(adev)) voice_set_sidetone(adev, uc_info->out_snd_device, false); Loading