diff options
| author | Haynes Mathew George <hgeorge@codeaurora.org> | 2016-09-20 14:12:41 -0700 |
|---|---|---|
| committer | Andy Hung <hunga@google.com> | 2016-09-20 15:45:13 -0700 |
| commit | f9c7aaedfae3330715c5dec63aee2d811c8c1ad2 (patch) | |
| tree | 2504838e033c01447e20fffc02d82a007cf5ef3b | |
| parent | ed6a3848ba2da2f8db19bd6275df602f204786b4 (diff) | |
| download | android_hardware_qcom_audio-f9c7aaedfae3330715c5dec63aee2d811c8c1ad2.tar.gz android_hardware_qcom_audio-f9c7aaedfae3330715c5dec63aee2d811c8c1ad2.tar.bz2 android_hardware_qcom_audio-f9c7aaedfae3330715c5dec63aee2d811c8c1ad2.zip | |
audio: log error before closing stream
Bug: 31591209
Change-Id: Ie84ac5dad3e1f0987d359d60b5a33bc86ffa4e34
| -rw-r--r-- | hal/audio_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hal/audio_hw.c b/hal/audio_hw.c index e68535fd..2d506980 100644 --- a/hal/audio_hw.c +++ b/hal/audio_hw.c @@ -2076,9 +2076,9 @@ exit: pthread_mutex_unlock(&out->lock); if (ret != 0) { - out_on_error(&out->stream.common); if (out->pcm) ALOGE("%s: error %zu - %s", __func__, ret, pcm_get_error(out->pcm)); + out_on_error(&out->stream.common); if (out->usecase != USECASE_AUDIO_PLAYBACK_OFFLOAD) usleep(bytes * 1000000 / audio_stream_out_frame_size(stream) / out_get_sample_rate(&out->stream.common)); |
