Changeset 62310d7 in mainline
- Timestamp:
- 2013-08-19T12:28:21Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d337f74
- Parents:
- b7dd149
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_audio_pcm.c
rb7dd149 r62310d7 469 469 * @return Error code. 470 470 */ 471 int audio_pcm_stop_playback_immediate(audio_pcm_sess_t *sess) 472 { 473 async_exch_t *exch = async_exchange_begin(sess); 474 const int ret = async_req_2_0(exch, 475 DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE), 476 IPC_M_AUDIO_PCM_STOP_PLAYBACK, true); 477 async_exchange_end(exch); 478 return ret; 479 } 480 481 /** 482 * Stops playback at the end of the current fragment. 483 * 484 * @param sess Audio device session. 485 * 486 * @return Error code. 487 */ 471 488 int audio_pcm_stop_playback(audio_pcm_sess_t *sess) 472 489 { … … 474 491 const int ret = async_req_2_0(exch, 475 492 DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE), 476 IPC_M_AUDIO_PCM_STOP_PLAYBACK, true);493 IPC_M_AUDIO_PCM_STOP_PLAYBACK, false); 477 494 async_exchange_end(exch); 478 495 return ret; … … 550 567 * @return Error code. 551 568 */ 569 int audio_pcm_stop_capture_immediate(audio_pcm_sess_t *sess) 570 { 571 async_exch_t *exch = async_exchange_begin(sess); 572 const int ret = async_req_2_0(exch, 573 DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE), 574 IPC_M_AUDIO_PCM_STOP_CAPTURE, true); 575 async_exchange_end(exch); 576 return ret; 577 } 578 579 /** 580 * Stops capture at the end of the current fragment. 581 * 582 * @param sess Audio device session. 583 * 584 * @return Error code. 585 */ 552 586 int audio_pcm_stop_capture(audio_pcm_sess_t *sess) 553 587 { … … 555 589 const int ret = async_req_2_0(exch, 556 590 DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE), 557 IPC_M_AUDIO_PCM_STOP_CAPTURE, true);591 IPC_M_AUDIO_PCM_STOP_CAPTURE, false); 558 592 async_exchange_end(exch); 559 593 return ret; -
uspace/lib/drv/include/audio_pcm_iface.h
rb7dd149 r62310d7 98 98 int audio_pcm_start_playback(audio_pcm_sess_t *, 99 99 unsigned, unsigned, pcm_sample_format_t); 100 int audio_pcm_stop_playback_immediate(audio_pcm_sess_t *); 100 101 int audio_pcm_stop_playback(audio_pcm_sess_t *); 101 102 … … 106 107 int audio_pcm_start_capture(audio_pcm_sess_t *, 107 108 unsigned, unsigned, pcm_sample_format_t); 109 int audio_pcm_stop_capture_immediate(audio_pcm_sess_t *); 108 110 int audio_pcm_stop_capture(audio_pcm_sess_t *); 109 111 -
uspace/srv/audio/hound/audio_device.c
rb7dd149 r62310d7 191 191 log_verbose("Removed last connection on device sink '%s'", 192 192 sink->name); 193 int ret = audio_pcm_stop_playback (dev->sess);193 int ret = audio_pcm_stop_playback_immediate(dev->sess); 194 194 if (ret != EOK) { 195 195 log_error("Failed to stop playback: %s", … … 246 246 if (list_count(&source->connections) == 0) { /* Disconnected */ 247 247 assert(!new); 248 int ret = audio_pcm_stop_capture (dev->sess);248 int ret = audio_pcm_stop_capture_immediate(dev->sess); 249 249 if (ret != EOK) { 250 250 log_error("Failed to start recording: %s",
Note:
See TracChangeset
for help on using the changeset viewer.