Ignore:
Timestamp:
2018-04-12T16:27:17Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
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)
Message:

Make ccheck-fix again and commit more good files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_audio_pcm.c

    r76d0981d r3bacee1  
    198198                        /* Make the other side fail
    199199                         * as it waits for read request */
    200                         async_data_read_start(exch, (void*)-1, 0);
     200                        async_data_read_start(exch, (void *)-1, 0);
    201201                        async_exchange_end(exch);
    202202                        return ENOMEM;
     
    288288        /* All OK or something has changed. Verify that it was not one of the
    289289         * 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))
    294294                return EOK;
    295295        if (channels)
     
    781781
    782782        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);
    785785        if (ret != EOK) {
    786786                ddf_msg(LVL_DEBUG, "Failed to share buffer.");
     
    812812        const pcm_sample_format_t format = DEV_IPC_GET_ARG3(*call) & UINT16_MAX;
    813813
    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;
    817817        async_answer_0(chandle, ret);
    818818}
     
    839839        const pcm_sample_format_t format = DEV_IPC_GET_ARG3(*call) & UINT16_MAX;
    840840
    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;
    844844        async_answer_0(chandle, ret);
    845845}
Note: See TracChangeset for help on using the changeset viewer.