FreeCalypso > hg > tcs211-l1-reconst
changeset 176:ca2eff9c5236
l1audio_afunc.c fully reconstructed, matches TCS211 object
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 07 Jun 2016 23:45:14 +0000 |
parents | 855b091b3839 |
children | ee85f6fb3eac |
files | chipsetsw/layer1/audio_cfile/l1audio_afunc.c |
diffstat | 1 files changed, 14 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/chipsetsw/layer1/audio_cfile/l1audio_afunc.c Tue Jun 07 19:54:33 2016 +0000 +++ b/chipsetsw/layer1/audio_cfile/l1audio_afunc.c Tue Jun 07 23:45:14 2016 +0000 @@ -181,7 +181,7 @@ void *p_message; T_RVF_MB_STATUS mb_status; //omaps00090550 - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_RV_HDR), (T_RVF_BUFFER **) (&p_message)); @@ -229,7 +229,7 @@ { #if (OP_RIV_AUDIO == 1) - void *p_message = NULL; //omaps00090550 + void *p_message; T_RVF_MB_STATUS mb_status; //omaps00090550 switch (SignalCode) @@ -248,7 +248,7 @@ /* Translate the l1 message into the Riviera compliant message */ /* Allocate the Riviera buffer */ - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_AUDIO_DRIVER_NOTIFICATION), (T_RVF_BUFFER **) (&p_message)); /* If insufficient resources, then report a memory error and abort. */ @@ -283,7 +283,7 @@ { /* Translate the l1 message into the Riviera compliant message */ /* Allocate the Riviera buffer */ - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_MMI_VM_AMR_RECORD_CON), (T_RVF_BUFFER **) (&p_message)); @@ -306,7 +306,7 @@ /* Translate the l1 message into the Riviera compliant message */ /* Allocate the Riviera buffer */ - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_MMI_VM_RECORD_CON), (T_RVF_BUFFER **) (&p_message)); @@ -355,7 +355,7 @@ /* Translate the l1 message into the Riviera compliant message */ /* Allocate the Riviera buffer */ - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_MMI_SR_ENROLL_STOP_CON), (T_RVF_BUFFER **) (&p_message)); @@ -378,7 +378,7 @@ /* Translate the l1 message into the Riviera compliant message */ /* Allocate the Riviera buffer */ - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_MMI_SR_UPDATE_STOP_CON), (T_RVF_BUFFER **) (&p_message)); @@ -401,7 +401,7 @@ /* Translate the l1 message into the Riviera compliant message */ /* Allocate the Riviera buffer */ - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_MMI_SR_RECO_STOP_CON), (T_RVF_BUFFER **) (&p_message)); @@ -447,7 +447,7 @@ /* Translate the l1 message into the Riviera compliant message */ /* Allocate the Riviera buffer */ - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_MMI_SR_UPDATE_CHECK_STOP_CON), (T_RVF_BUFFER **) (&p_message)); @@ -685,11 +685,8 @@ } } - if(p_message != NULL) -{ /* Fill the message ID */ ((T_RV_HDR *)p_message)->msg_id = SignalCode; -} /* send the messsage to the audio entity */ rvf_send_msg (p_audio_gbl_var->addrId, p_message); @@ -739,7 +736,7 @@ { // Allocate the partition #if (OP_RIV_AUDIO == 1) - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_L1_SRBACK_SAVE_DATA_REQ), (T_RVF_BUFFER **) (&p_message)); @@ -771,7 +768,7 @@ { // Allocate the partition #if (OP_RIV_AUDIO == 1) - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_L1_SRBACK_LOAD_MODEL_REQ), (T_RVF_BUFFER **) (&p_message)); @@ -799,7 +796,7 @@ { // Allocate the partition #if (OP_RIV_AUDIO == 1) - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_L1_SRBACK_TEMP_SAVE_DATA_REQ), (T_RVF_BUFFER **) (&p_message)); @@ -870,7 +867,7 @@ { // Allocate the partition #if (OP_RIV_AUDIO == 1) - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_L1_BACK_MELODY_E2_LOAD_INSTRUMENT_REQ), (T_RVF_BUFFER **) (&p_message)); @@ -919,7 +916,7 @@ { // Allocate the partition #if (OP_RIV_AUDIO == 1) - mb_status = rvf_get_buf ( p_audio_gbl_var->mb_external, + mb_status = rvf_get_buf ( p_audio_gbl_var->mb_internal, sizeof (T_L1_BACK_MELODY_E2_UNLOAD_INSTRUMENT_REQ), (T_RVF_BUFFER **) (&p_message));