changeset 599:4626d7a955de

aci3 MCSI autoswitch: RV return path fix
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 28 Mar 2019 00:01:11 +0000
parents 717ed17d82c6
children 8f50b202e81f
files src/g23m-aci/aci/hl_audio_drv.c
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/g23m-aci/aci/hl_audio_drv.c	Wed Mar 27 23:44:35 2019 +0000
+++ b/src/g23m-aci/aci/hl_audio_drv.c	Thu Mar 28 00:01:11 2019 +0000
@@ -69,6 +69,13 @@
   currVocoderState = HL_VOCODER_DISABLED;
 }
 
+#ifdef CONFIG_TARGET_FCDEV3B
+static void audio_mode_callback(void *event_from_audio)
+{
+	/* do nothing at this time */
+}
+#endif
+
 /*
 +-------------------------------------------------------------------+
 | PROJECT : GSM-PS (6147)         MODULE  : PSA_CCF                 |
@@ -85,7 +92,7 @@
 #ifdef CONFIG_TARGET_FCDEV3B
   T_AUDIO_VOICE_PATH_SETTING vpath;
   T_AUDIO_FULL_ACCESS_WRITE audio_param;
-  T_RV_RETURN return_path = { NULL, 0 };
+  T_RV_RETURN return_path;
 #endif
 
   TRACE_FUNCTION("hl_drv_set_vocoder_state");
@@ -105,6 +112,8 @@
       vpath = AUDIO_BLUETOOTH_HEADSET;
       audio_param.variable_indentifier = AUDIO_PATH_USED;
       audio_param.data = &vpath;
+      return_path.addr_id       = NULL;
+      return_path.callback_func = audio_mode_callback;
       audio_full_access_write(&audio_param, return_path);
     }
   #endif
@@ -121,6 +130,8 @@
       vpath = AUDIO_GSM_VOICE_PATH;
       audio_param.variable_indentifier = AUDIO_PATH_USED;
       audio_param.data = &vpath;
+      return_path.addr_id       = NULL;
+      return_path.callback_func = audio_mode_callback;
       audio_full_access_write(&audio_param, return_path);
     }
   #endif