Changeset e941bf8 in mainline for uspace/drv/audio/sb16/dsp.c


Ignore:
Timestamp:
2012-07-05T21:01:11Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4bbfb93
Parents:
124f9bd
Message:

audio/sb16: Remove optical separators.

File:
1 edited

Legend:

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

    r124f9bd re941bf8  
    7373        return EOK;
    7474}
    75 /*----------------------------------------------------------------------------*/
     75
    7676static inline int sb_dsp_write(sb_dsp_t *dsp, uint8_t data)
    7777{
     
    8989        return EOK;
    9090}
    91 /*----------------------------------------------------------------------------*/
     91
    9292static inline void sb_dsp_reset(sb_dsp_t *dsp)
    9393{
     
    9898        pio_write_8(&dsp->regs->dsp_reset, 0);
    9999}
    100 /*----------------------------------------------------------------------------*/
     100
    101101static inline int sb_setup_dma(sb_dsp_t *dsp, uintptr_t pa, size_t size)
    102102{
     
    112112        return ret;
    113113}
    114 /*----------------------------------------------------------------------------*/
     114
    115115static inline int sb_setup_buffer(sb_dsp_t *dsp, size_t size)
    116116{
     
    139139        return ret;
    140140}
    141 /*----------------------------------------------------------------------------*/
     141
    142142static inline void sb_clear_buffer(sb_dsp_t *dsp)
    143143{
     
    146146        dsp->buffer.size = 0;
    147147}
    148 /*----------------------------------------------------------------------------*/
     148
    149149static inline size_t sample_count(unsigned sample_size, size_t byte_count)
    150150{
     
    154154        return byte_count;
    155155}
    156 /*----------------------------------------------------------------------------*/
     156
    157157int sb_dsp_init(sb_dsp_t *dsp, sb16_regs_t *regs, ddf_dev_t *dev,
    158158    int dma8, int dma16)
     
    186186        return ret;
    187187}
    188 /*----------------------------------------------------------------------------*/
     188
    189189void sb_dsp_interrupt(sb_dsp_t *dsp)
    190190{
     
    203203#endif
    204204}
    205 /*----------------------------------------------------------------------------*/
     205
    206206int sb_dsp_get_buffer(sb_dsp_t *dsp, void **buffer, size_t *size, unsigned *id)
    207207{
     
    241241        return EOK;
    242242}
    243 /*----------------------------------------------------------------------------*/
     243
    244244int sb_dsp_release_buffer(sb_dsp_t *dsp, unsigned id)
    245245{
     
    257257        return EOK;
    258258}
    259 /*----------------------------------------------------------------------------*/
     259
    260260int sb_dsp_start_playback(sb_dsp_t *dsp, unsigned id, unsigned parts,
    261261    unsigned sampling_rate, unsigned sample_size, unsigned channels, bool sign)
     
    312312        return EOK;
    313313}
    314 /*----------------------------------------------------------------------------*/
     314
    315315int sb_dsp_stop_playback(sb_dsp_t *dsp, unsigned id)
    316316{
     
    322322        return EOK;
    323323}
    324 /*----------------------------------------------------------------------------*/
     324
    325325int sb_dsp_start_record(sb_dsp_t *dsp, unsigned id, unsigned sample_rate,
    326326    unsigned sample_size, unsigned channels, bool sign)
     
    328328        return ENOTSUP;
    329329}
    330 /*----------------------------------------------------------------------------*/
     330
    331331int sb_dsp_stop_record(sb_dsp_t *dsp, unsigned id)
    332332{
Note: See TracChangeset for help on using the changeset viewer.