Changeset d337f74 in mainline


Ignore:
Timestamp:
2013-08-19T13:00:43Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5b8e08e
Parents:
62310d7
Message:

sb16: Change state before reporting 'terminated' events

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/dsp.c

    r62310d7 rd337f74  
    248248        case DSP_PLAYBACK_NOEVENTS:
    249249#ifndef AUTO_DMA_MODE
    250         dsp_start_current_active(dsp, SINGLE_DMA_16B_DA);
     250                dsp_start_current_active(dsp, SINGLE_DMA_16B_DA);
    251251#endif
    252252                break;
     
    255255        case DSP_CAPTURE_NOEVENTS:
    256256#ifndef AUTO_DMA_MODE
    257         dsp_start_current_active(dsp, SINGLE_DMA_16B_DA);
     257                dsp_start_current_active(dsp, SINGLE_DMA_16B_DA);
    258258#endif
    259259                break;
    260260        case DSP_CAPTURE_TERMINATE:
     261                dsp_change_state(dsp, DSP_READY);
    261262                dsp_report_event(dsp, PCM_EVENT_CAPTURE_TERMINATED);
    262263                async_exchange_end(dsp->event_exchange);
    263264                dsp->event_exchange = NULL;
    264                 dsp_change_state(dsp, DSP_READY);
    265265                break;
    266266        case DSP_PLAYBACK_TERMINATE:
     267                dsp_change_state(dsp, DSP_READY);
    267268                dsp_report_event(dsp, PCM_EVENT_PLAYBACK_TERMINATED);
    268269                async_exchange_end(dsp->event_exchange);
    269270                dsp->event_exchange = NULL;
    270                 dsp_change_state(dsp, DSP_READY);
    271271                break;
    272272        default:
Note: See TracChangeset for help on using the changeset viewer.