# HG changeset patch # User Mychaela Falconia # Date 1530248941 0 # Node ID f2ebef402db8a9a4813495e297efb8f7f6aea386 # Parent 68e0373035d7109ba682ca981bdf755309fcd53a L1_DYN_DSP_DWNLD=1 && MELODY_E2=0: clear dsp_debug_buf_start pointers in l1_disable_DSP_trace() diff -r 68e0373035d7 -r f2ebef402db8 src/cs/layer1/dyn_dwl_cfile/l1_dyn_dwl_afunc.c --- a/src/cs/layer1/dyn_dwl_cfile/l1_dyn_dwl_afunc.c Fri Jun 29 04:53:00 2018 +0000 +++ b/src/cs/layer1/dyn_dwl_cfile/l1_dyn_dwl_afunc.c Fri Jun 29 05:09:01 2018 +0000 @@ -435,6 +435,17 @@ l1a.dyn_dwnld.dsp_trace_level_copy = dsp_ndb_ptr->d_debug_trace_type; dsp_ndb_ptr->d_debug_trace_type = (API)0x8000; /* 0x9000 in LoCosto */ l1a.dyn_dwnld.trace_flag_blocked = TRUE; + + /* + * The following addition is FreeCalypso guesswork based on LoCosto + * source. It will only get compiled when L1_DYN_DSP_DWNLD=1 and + * MELODY_E2=0, and does not appear in our reference Leonardo object + * because MELODY_E2 disables DSP_DEBUG_TRACE_ENABLE. + */ + #if (DSP_DEBUG_TRACE_ENABLE) + trace_info.dsp_debug_buf_start[0] = NULL; + trace_info.dsp_debug_buf_start[1] = NULL; + #endif } }