Changeset daed689 in mainline
- Timestamp:
- 2012-08-20T15:14:50Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 03d6e0d
- Parents:
- e7bf5f6
- Location:
- uspace/drv/audio/sb16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp.c
re7bf5f6 rdaed689 256 256 #endif 257 257 break; 258 case DSP_CAPTURE_TERMINATE: 259 dsp_report_event(dsp, PCM_EVENT_CAPTURE_TERMINATED); 260 async_exchange_end(dsp->event_exchange); 261 dsp->event_exchange = NULL; 262 sb_dsp_change_state(dsp, DSP_STOPPED); 263 break; 264 case DSP_PLAYBACK_TERMINATE: 265 dsp_report_event(dsp, PCM_EVENT_PLAYBACK_TERMINATED); 266 async_exchange_end(dsp->event_exchange); 267 dsp->event_exchange = NULL; 268 sb_dsp_change_state(dsp, DSP_STOPPED); 269 break; 258 270 default: 259 271 ddf_log_warning("Interrupt while DSP not active"); … … 439 451 sb_dsp_write(dsp, DMA_16B_EXIT); 440 452 ddf_log_debug("Stopping playback on buffer."); 441 if (dsp->state == DSP_PLAYBACK_ACTIVE_EVENTS) 442 dsp_report_event(dsp, PCM_EVENT_PLAYBACK_TERMINATED); 443 async_exchange_end(dsp->event_exchange); 444 dsp->event_exchange = NULL; 445 sb_dsp_change_state(dsp, DSP_STOPPED); 453 sb_dsp_change_state(dsp, DSP_PLAYBACK_TERMINATE); 446 454 return EOK; 447 455 } … … 502 510 sb_dsp_write(dsp, DMA_16B_EXIT); 503 511 ddf_log_debug("Stopped capture"); 504 if (dsp->state == DSP_CAPTURE_ACTIVE_EVENTS) 505 dsp_report_event(dsp, PCM_EVENT_CAPTURE_TERMINATED); 506 async_exchange_end(dsp->event_exchange); 507 dsp->event_exchange = NULL; 508 sb_dsp_change_state(dsp, DSP_STOPPED); 512 sb_dsp_change_state(dsp, DSP_CAPTURE_TERMINATE); 509 513 return EOK; 510 514 } -
uspace/drv/audio/sb16/dsp.h
re7bf5f6 rdaed689 47 47 DSP_PLAYBACK_NOEVENTS, 48 48 DSP_CAPTURE_NOEVENTS, 49 DSP_PLAYBACK_TERMINATE, 50 DSP_CAPTURE_TERMINATE, 49 51 DSP_STOPPED, 50 52 DSP_READY,
Note:
See TracChangeset
for help on using the changeset viewer.