Changeset 1ba95ba in mainline for uspace/drv/audio/sb16/pcm_iface.c


Ignore:
Timestamp:
2012-08-19T16:10:48Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86fe9d1
Parents:
fa91c0f
Message:

sb16: Implement and enable buffer position capability.

File:
1 edited

Legend:

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

    rfa91c0f r1ba95ba  
    7070        return sb_dsp_get_buffer(dsp, buffer, size);
    7171}
     72
     73static int sb_get_buffer_position(ddf_fun_t *fun, size_t *size)
     74{
     75        assert(fun);
     76        assert(fun->driver_data);
     77        sb_dsp_t *dsp = fun->driver_data;
     78        return sb_dsp_get_buffer_position(dsp, size);
     79}
     80
    7281static int sb_set_event_session(ddf_fun_t *fun, async_sess_t *sess)
    7382{
     
    130139        .release_buffer = sb_release_buffer,
    131140        .set_event_session = sb_set_event_session,
     141        .get_buffer_pos = sb_get_buffer_position,
    132142
    133143        .start_playback = sb_start_playback,
Note: See TracChangeset for help on using the changeset viewer.