audio: Add error logging to ril_interface

Change-Id: I447d1bf2745990bd71688847d3e9cdb432c57f47
diff --git a/audio/ril_interface.c b/audio/ril_interface.c
index cffbbe6..f0832cb 100644
--- a/audio/ril_interface.c
+++ b/audio/ril_interface.c
@@ -186,12 +186,16 @@
 
     rc = ril_connect_if_required(ril);
     if (rc != 0) {
+        ALOGE("%s: Failed to connect to RIL (%s)", __func__, strerror(rc));
         return 0;
     }
 
     rc = SetCallVolume(ril->client,
                        sound_type,
                        (int)(volume * ril->volume_steps_max));
+    if (rc != 0) {
+        ALOGE("%s: SetCallVolume() failed, rc=%d", __func__, rc);
+    }
 
     return rc;
 }
@@ -202,10 +206,14 @@
 
     rc = ril_connect_if_required(ril);
     if (rc != 0) {
+        ALOGE("%s: Failed to connect to RIL (%s)", __func__, strerror(rc));
         return 0;
     }
 
     rc = SetCallAudioPath(ril->client, path);
+    if (rc != 0) {
+        ALOGE("%s: SetCallAudioPath() failed, rc=%d", __func__, rc);
+    }
 
     return rc;
 }
@@ -217,10 +225,14 @@
 
     rc = ril_connect_if_required(ril);
     if (rc != 0) {
+        ALOGE("%s: Failed to connect to RIL (%s)", __func__, strerror(rc));
         return 0;
     }
 
     rc = SetCallClockSync(ril->client, condition);
+    if (rc != 0) {
+        ALOGE("%s: SetCallClockSync() failed, rc=%d", __func__, rc);
+    }
 
     return rc;
 }
@@ -231,10 +243,14 @@
 
     rc = ril_connect_if_required(ril);
     if (rc != 0) {
+        ALOGE("%s: Failed to connect to RIL (%s)", __func__, strerror(rc));
         return 0;
     }
 
     rc = SetMute(ril->client, condition);
+    if (rc != 0) {
+        ALOGE("%s: SetMute() failed, rc=%d", __func__, rc);
+    }
 
     return rc;
 }
@@ -247,10 +263,14 @@
 
     rc = ril_connect_if_required(ril);
     if (rc != 0) {
+        ALOGE("%s: Failed to connect to RIL (%s)", __func__, strerror(rc));
         return 0;
     }
 
     rc = SetTwoMicControl(ril->client, device, report);
+    if (rc != 0) {
+        ALOGE("%s: SetTwoMicControl() failed, rc=%d", __func__, rc);
+    }
 
     return rc;
 }