projects
/
GitHub
/
LineageOS
/
android_hardware_samsung.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df6fc8a
)
audio: Log error if we fail to set the audio path
author
Andreas Schneider
<asn@cryptomilk.org>
Mon, 13 Feb 2017 15:21:35 +0000
(16:21 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 14 Feb 2017 16:42:15 +0000
(17:42 +0100)
Change-Id: Ide469d644aaab2a97dd72244bd316c2ff497d9db
audio/voice.c
patch
|
blob
|
blame
|
history
diff --git
a/audio/voice.c
b/audio/voice.c
index 08d8baf38ee845663f60525380f1179c9a1fef91..19653796dbedb7574a50d6e7c6b09927ce7440c5 100644
(file)
--- 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);
}
/*