changeset 280:712c69552df0

l1audio_cust.c: Cust_get_pointer() reconstructed
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 14 Mar 2017 05:58:28 +0000
parents 8a7b5f1d6429
children 1b66686de106
files chipsetsw/layer1/audio_cust0/l1audio_cust.c
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/chipsetsw/layer1/audio_cust0/l1audio_cust.c	Tue Mar 14 05:35:57 2017 +0000
+++ b/chipsetsw/layer1/audio_cust0/l1audio_cust.c	Tue Mar 14 05:58:28 2017 +0000
@@ -894,7 +894,7 @@
         T_AUDIO_FFS_SESSION *p_session;
 
       #if (L1_AUDIO_DRIVER == 1)
-        T_AUDIO_DRIVER_SESSION *p_driver_session = NULL;
+        T_AUDIO_DRIVER_SESSION *p_driver_session;
         UINT8 channel_id;
         xSignalHeaderRec *msg;
 
@@ -911,12 +911,9 @@
             channel_id++;
           }
           /* get driver session */
-          if(channel_id < AUDIO_DRIVER_MAX_CHANNEL)
           p_driver_session = &(p_audio_gbl_var->audio_driver_session[channel_id]);
 
           /* first buffer, index_l1 = 0 */
-        if(p_driver_session != NULL)
-         {
           if (*ptr == NULL)
           {
             *ptr = (UWORD16 *)(p_driver_session->session_info.buffer[0].p_start_pointer);
@@ -956,8 +953,6 @@
 
             return (DATA_AVAILABLE);
           }
-	  	 }
-	  	 return(DATA_AVAIL_ERROR);
         }
         /* Other features */
         else