Fork us on GitHub Follow us on Facebook Follow us on Twitter

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


Ignore:
Timestamp:
2017-10-08T20:42:50Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
07cb0108
Parents:
d15797d
Message:

Must not explicitly close DDF-provided parent session.

File:
1 edited

Legend:

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

    rd15797d r53a309e  
    163163        async_sess_t *sess = ddf_dev_parent_sess_get(dsp->sb_dev);
    164164
    165         const int ret = hw_res_dma_channel_setup(sess,
     165        return hw_res_dma_channel_setup(sess,
    166166            dsp->dma16_channel, pa, size,
    167167            DMA_MODE_READ | DMA_MODE_AUTO | DMA_MODE_ON_DEMAND);
    168 
    169         async_hangup(sess);
    170         return ret;
    171168}
    172169
     
    307304        // TODO: Assumes DMA 16
    308305        const int remain = hw_res_dma_channel_remain(sess, dsp->dma16_channel);
    309         async_hangup(sess);
    310306        if (remain >= 0) {
    311307                *pos = dsp->buffer.size - remain;
Note: See TracChangeset for help on using the changeset viewer.