Changeset 3bacee1 in mainline for uspace/lib/drv/generic/remote_audio_pcm.c
- Timestamp:
- 2018-04-12T16:27:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/remote_audio_pcm.c
r76d0981d r3bacee1 198 198 /* Make the other side fail 199 199 * as it waits for read request */ 200 async_data_read_start(exch, (void *)-1, 0);200 async_data_read_start(exch, (void *)-1, 0); 201 201 async_exchange_end(exch); 202 202 return ENOMEM; … … 288 288 /* All OK or something has changed. Verify that it was not one of the 289 289 * params we care about */ 290 if ((ret == EOK || ret == ELIMIT) 291 && (!channels || *channels == channels_arg)292 && (!rate || *rate == rate_arg)293 &&(!format || *format == format_arg))290 if ((ret == EOK || ret == ELIMIT) && 291 (!channels || *channels == channels_arg) && 292 (!rate || *rate == rate_arg) && 293 (!format || *format == format_arg)) 294 294 return EOK; 295 295 if (channels) … … 781 781 782 782 ddf_msg(LVL_DEBUG2, "Calling share finalize."); 783 ret = async_share_in_finalize(share_id, buffer, AS_AREA_WRITE 784 |AS_AREA_READ);783 ret = async_share_in_finalize(share_id, buffer, AS_AREA_WRITE | 784 AS_AREA_READ); 785 785 if (ret != EOK) { 786 786 ddf_msg(LVL_DEBUG, "Failed to share buffer."); … … 812 812 const pcm_sample_format_t format = DEV_IPC_GET_ARG3(*call) & UINT16_MAX; 813 813 814 const errno_t ret = pcm_iface->start_playback 815 ? pcm_iface->start_playback(fun, frames, channels, rate, format)816 :ENOTSUP;814 const errno_t ret = pcm_iface->start_playback ? 815 pcm_iface->start_playback(fun, frames, channels, rate, format) : 816 ENOTSUP; 817 817 async_answer_0(chandle, ret); 818 818 } … … 839 839 const pcm_sample_format_t format = DEV_IPC_GET_ARG3(*call) & UINT16_MAX; 840 840 841 const errno_t ret = pcm_iface->start_capture 842 ? pcm_iface->start_capture(fun, frames, channels, rate, format)843 :ENOTSUP;841 const errno_t ret = pcm_iface->start_capture ? 842 pcm_iface->start_capture(fun, frames, channels, rate, format) : 843 ENOTSUP; 844 844 async_answer_0(chandle, ret); 845 845 }
Note:
See TracChangeset
for help on using the changeset viewer.