Ignore:
Timestamp:
2018-01-31T02:21:24Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/hdaudio/pcm_iface.c

    r132ab5d1 r5a6cc679  
    4747#include "stream.h"
    4848
    49 static int hda_get_info_str(ddf_fun_t *, const char **);
     49static errno_t hda_get_info_str(ddf_fun_t *, const char **);
    5050static unsigned hda_query_cap(ddf_fun_t *, audio_cap_t);
    51 static int hda_test_format(ddf_fun_t *, unsigned *, unsigned *,
     51static errno_t hda_test_format(ddf_fun_t *, unsigned *, unsigned *,
    5252    pcm_sample_format_t *);
    53 static int hda_get_buffer(ddf_fun_t *, void **, size_t *);
    54 static int hda_get_buffer_position(ddf_fun_t *, size_t *);
    55 static int hda_set_event_session(ddf_fun_t *, async_sess_t *);
     53static errno_t hda_get_buffer(ddf_fun_t *, void **, size_t *);
     54static errno_t hda_get_buffer_position(ddf_fun_t *, size_t *);
     55static errno_t hda_set_event_session(ddf_fun_t *, async_sess_t *);
    5656static async_sess_t *hda_get_event_session(ddf_fun_t *);
    57 static int hda_release_buffer(ddf_fun_t *);
    58 static int hda_start_playback(ddf_fun_t *, unsigned, unsigned, unsigned,
     57static errno_t hda_release_buffer(ddf_fun_t *);
     58static errno_t hda_start_playback(ddf_fun_t *, unsigned, unsigned, unsigned,
    5959    pcm_sample_format_t);
    60 static int hda_stop_playback(ddf_fun_t *, bool);
    61 static int hda_start_capture(ddf_fun_t *, unsigned, unsigned, unsigned,
     60static errno_t hda_stop_playback(ddf_fun_t *, bool);
     61static errno_t hda_start_capture(ddf_fun_t *, unsigned, unsigned, unsigned,
    6262    pcm_sample_format_t);
    63 static int hda_stop_capture(ddf_fun_t *, bool);
     63static errno_t hda_stop_capture(ddf_fun_t *, bool);
    6464
    6565audio_pcm_iface_t hda_pcm_iface = {
     
    9090}
    9191
    92 static int hda_get_info_str(ddf_fun_t *fun, const char **name)
     92static errno_t hda_get_info_str(ddf_fun_t *fun, const char **name)
    9393{
    9494        ddf_msg(LVL_NOTE, "hda_get_info_str()");
     
    124124}
    125125
    126 static int hda_test_format(ddf_fun_t *fun, unsigned *channels,
     126static errno_t hda_test_format(ddf_fun_t *fun, unsigned *channels,
    127127    unsigned *rate, pcm_sample_format_t *format)
    128128{
    129         int rc = EOK;
     129        errno_t rc = EOK;
    130130
    131131        ddf_msg(LVL_NOTE, "hda_test_format(%u, %u, %d)\n",
     
    150150}
    151151
    152 static int hda_get_buffer(ddf_fun_t *fun, void **buffer, size_t *size)
    153 {
    154         hda_t *hda = fun_to_hda(fun);
    155         int rc;
     152static errno_t hda_get_buffer(ddf_fun_t *fun, void **buffer, size_t *size)
     153{
     154        hda_t *hda = fun_to_hda(fun);
     155        errno_t rc;
    156156
    157157        hda_lock(hda);
     
    183183}
    184184
    185 static int hda_get_buffer_position(ddf_fun_t *fun, size_t *pos)
     185static errno_t hda_get_buffer_position(ddf_fun_t *fun, size_t *pos)
    186186{
    187187        ddf_msg(LVL_NOTE, "hda_get_buffer_position()");
     
    189189}
    190190
    191 static int hda_set_event_session(ddf_fun_t *fun, async_sess_t *sess)
     191static errno_t hda_set_event_session(ddf_fun_t *fun, async_sess_t *sess)
    192192{
    193193        hda_t *hda = fun_to_hda(fun);
     
    215215}
    216216
    217 static int hda_release_buffer(ddf_fun_t *fun)
     217static errno_t hda_release_buffer(ddf_fun_t *fun)
    218218{
    219219        hda_t *hda = fun_to_hda(fun);
     
    234234}
    235235
    236 static int hda_start_playback(ddf_fun_t *fun, unsigned frames,
     236static errno_t hda_start_playback(ddf_fun_t *fun, unsigned frames,
    237237    unsigned channels, unsigned rate, pcm_sample_format_t format)
    238238{
    239239        hda_t *hda = fun_to_hda(fun);
    240         int rc;
     240        errno_t rc;
    241241
    242242        ddf_msg(LVL_NOTE, "hda_start_playback()");
     
    275275}
    276276
    277 static int hda_stop_playback(ddf_fun_t *fun, bool immediate)
     277static errno_t hda_stop_playback(ddf_fun_t *fun, bool immediate)
    278278{
    279279        hda_t *hda = fun_to_hda(fun);
     
    293293}
    294294
    295 static int hda_start_capture(ddf_fun_t *fun, unsigned frames, unsigned channels,
     295static errno_t hda_start_capture(ddf_fun_t *fun, unsigned frames, unsigned channels,
    296296    unsigned rate, pcm_sample_format_t format)
    297297{
    298298        hda_t *hda = fun_to_hda(fun);
    299         int rc;
     299        errno_t rc;
    300300
    301301        ddf_msg(LVL_NOTE, "hda_start_capture()");
     
    334334}
    335335
    336 static int hda_stop_capture(ddf_fun_t *fun, bool immediate)
     336static errno_t hda_stop_capture(ddf_fun_t *fun, bool immediate)
    337337{
    338338        hda_t *hda = fun_to_hda(fun);
Note: See TracChangeset for help on using the changeset viewer.