Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f7b36bc in mainline


Ignore:
Timestamp:
2013-08-19T16:26:55Z (7 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
master
Children:
8e77b60e
Parents:
3efaeb6
Message:

sb16: Send 'terminated' events on immediate stop.

File:
1 edited

Legend:

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

    r3efaeb6 rf7b36bc  
    456456                ddf_log_debug("Stopped playback");
    457457                dsp_change_state(dsp, DSP_READY);
     458                if (dsp->event_exchange) {
     459                        dsp_report_event(dsp, PCM_EVENT_PLAYBACK_TERMINATED);
     460                        async_exchange_end(dsp->event_exchange);
     461                        dsp->event_exchange = NULL;
     462                }
    458463                return EOK;
    459464        }
     
    527532                ddf_log_debug("Stopped capture fragment");
    528533                dsp_change_state(dsp, DSP_READY);
     534                if (dsp->event_exchange) {
     535                        dsp_report_event(dsp, PCM_EVENT_CAPTURE_TERMINATED);
     536                        async_exchange_end(dsp->event_exchange);
     537                        dsp->event_exchange = NULL;
     538                }
    529539                return EOK;
    530540        }
Note: See TracChangeset for help on using the changeset viewer.