Ignore:
Timestamp:
2018-01-30T03:20:45Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a6cc679
Parents:
8bfb163 (diff), 6a5d05b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge commit '6a5d05bd2551e64111bea4f9332dd7448c26ce84' into forwardport

Separate return value from error code in gen_irq_code*().

File:
1 edited

Legend:

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

    r8bfb163 r132ab5d1  
    221221 * @param sess Audio device session.
    222222 * @param cap  Audio device capability.
    223  * @param val  Place to store queried value.
    224  *
    225  * @return Error code.
    226  */
    227 int audio_pcm_query_cap(audio_pcm_sess_t *sess, audio_cap_t cap)
    228 {
    229         async_exch_t *exch = async_exchange_begin(sess);
    230         sysarg_t value = 0;
     223 * @param[out] val  Place to store queried value.
     224 *
     225 * @return Error code.
     226 */
     227int audio_pcm_query_cap(audio_pcm_sess_t *sess, audio_cap_t cap, sysarg_t *value)
     228{
     229        async_exch_t *exch = async_exchange_begin(sess);
    231230        const int ret = async_req_2_1(exch,
    232231            DEV_IFACE_ID(AUDIO_PCM_BUFFER_IFACE), IPC_M_AUDIO_PCM_QUERY_CAPS,
    233             cap, &value);
    234         async_exchange_end(exch);
    235         if (ret == EOK)
    236                 return value;
     232            cap, value);
     233        async_exchange_end(exch);
    237234        return ret;
    238235}
Note: See TracChangeset for help on using the changeset viewer.