diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2017-02-13 16:21:35 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-02-14 17:42:15 +0100 |
commit | d44edaa26161dcf9487484855a10378cb97f00af (patch) | |
tree | 0473bc2739a4d94153e2e8c7c1c8d9f6eff3ae28 | |
parent | df6fc8a6a9fd024084169f3a394454efe3ffcf23 (diff) | |
download | android_hardware_samsung-d44edaa26161dcf9487484855a10378cb97f00af.tar.gz android_hardware_samsung-d44edaa26161dcf9487484855a10378cb97f00af.tar.bz2 android_hardware_samsung-d44edaa26161dcf9487484855a10378cb97f00af.zip |
audio: Log error if we fail to set the audio path
Change-Id: Ide469d644aaab2a97dd72244bd316c2ff497d9db
-rw-r--r-- | audio/voice.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/audio/voice.c b/audio/voice.c index 08d8baf..1965379 100644 --- a/audio/voice.c +++ b/audio/voice.c @@ -65,6 +65,7 @@ int stop_voice_call(struct audio_device *adev); void set_voice_session_audio_path(struct voice_session *session) { enum _AudioPath device_type; + int rc; switch(session->out_device) { case AUDIO_DEVICE_OUT_SPEAKER: @@ -92,7 +93,8 @@ void set_voice_session_audio_path(struct voice_session *session) ALOGV("%s: ril_set_call_audio_path(%d)", __func__, device_type); - ril_set_call_audio_path(&session->ril, device_type); + rc = ril_set_call_audio_path(&session->ril, device_type); + ALOGE_IF(rc != 0, "Failed to set audio path: (%d)", rc); } /* |