# HG changeset patch # User Mychaela Falconia # Date 1460046869 0 # Node ID c78de09b1a90013b763115e7d5b6d83f385c8575 # Parent 784c1f136e67a37bb48760dfc218ac2be3293d6e l1_drive.c: l1ddsp_end_scenario() reconstructed diff -r 784c1f136e67 -r c78de09b1a90 chipsetsw/layer1/cfile/l1_drive.c --- a/chipsetsw/layer1/cfile/l1_drive.c Thu Apr 07 16:10:01 2016 +0000 +++ b/chipsetsw/layer1/cfile/l1_drive.c Thu Apr 07 16:34:29 2016 +0000 @@ -1062,19 +1062,19 @@ #endif // AUDIO_SIMULATION #else // NOT_SIMULATION - UWORD32 dsp_task=0 ;//omaps00090550; + UWORD32 dsp_task; switch(type) { case GSM_CTL: // a DSP control for a GSM task //----------------------------- { - // set only GSM task and GSM page - dsp_task = B_GSM_TASK | l1s_dsp_com.dsp_w_page; - // change DSP page pointer for next controle - l1s_dsp_com.dsp_w_page ^= 1; - } - break; + // set only GSM task and GSM page + dsp_task = B_GSM_TASK | l1s_dsp_com.dsp_w_page; + // change DSP page pointer for next controle + l1s_dsp_com.dsp_w_page ^= 1; + } + break; case MISC_CTL: // a DSP control for a MISC task @@ -1082,28 +1082,33 @@ { UWORD32 previous_page = l1s_dsp_com.dsp_w_page ^ 1; - // set only MISC task and reset MISC page - // (don't change GSM PAGE). - // set DSP communication Interrupt. - dsp_task = B_MISC_TASK | previous_page; + // set only MISC task and reset MISC page + // (don't change GSM PAGE). + // set DSP communication Interrupt. + dsp_task = B_MISC_TASK | previous_page; + + // Rem: DSP makes the DB header feedback even in case + // of MISC task (like TONES). This created some + // side effect which are "work-around" passing + // the correct DB page to the DSP. + } + break; - // Rem: DSP makes the DB header feedback even in case - // of MISC task (like TONES). This created some - // side effect which are "work-around" passing - // the correct DB page to the DSP. - } - break; + case GSM_MISC_CTL: + // a DSP control for a GSM and a MISC tasks + //----------------------------------------- + { + // set GSM task, MISC task and GSM page bit..... + dsp_task = B_GSM_TASK | B_MISC_TASK | l1s_dsp_com.dsp_w_page; + // change DSP page pointer for next controle + l1s_dsp_com.dsp_w_page ^= 1; + } + break; - case GSM_MISC_CTL: - // a DSP control for a GSM and a MISC tasks - //----------------------------------------- - { - // set GSM task, MISC task and GSM page bit..... - dsp_task = B_GSM_TASK | B_MISC_TASK | l1s_dsp_com.dsp_w_page; - // change DSP page pointer for next controle - l1s_dsp_com.dsp_w_page ^= 1; - } - break; + #if 0 /* enable this after TCS211 reconstruction */ + default: + dsp_task = 0; + #endif } // write dsp tasks.....