Changeset 62310d7 in mainline for uspace/lib/drv/generic
- 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
- File:
-
- 1 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;
Note:
See TracChangeset
for help on using the changeset viewer.