Changeset 53a309e in mainline for uspace/drv/audio
- Timestamp:
- 2017-10-08T20:42:50Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 07cb0108
- Parents:
- d15797d
- Location:
- uspace/drv/audio/sb16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp.c
rd15797d r53a309e 163 163 async_sess_t *sess = ddf_dev_parent_sess_get(dsp->sb_dev); 164 164 165 const int ret =hw_res_dma_channel_setup(sess,165 return hw_res_dma_channel_setup(sess, 166 166 dsp->dma16_channel, pa, size, 167 167 DMA_MODE_READ | DMA_MODE_AUTO | DMA_MODE_ON_DEMAND); 168 169 async_hangup(sess);170 return ret;171 168 } 172 169 … … 307 304 // TODO: Assumes DMA 16 308 305 const int remain = hw_res_dma_channel_remain(sess, dsp->dma16_channel); 309 async_hangup(sess);310 306 if (remain >= 0) { 311 307 *pos = dsp->buffer.size - remain; -
uspace/drv/audio/sb16/main.c
rd15797d r53a309e 186 186 hw_res_list_parsed_init(&hw_res); 187 187 const int ret = hw_res_get_list_parsed(parent_sess, &hw_res, 0); 188 async_hangup(parent_sess);189 188 if (ret != EOK) { 190 189 return ret; … … 250 249 251 250 bool enabled = hw_res_enable_interrupt(parent_sess); 252 async_hangup(parent_sess);253 251 254 252 return enabled ? EOK : EIO;
Note:
See TracChangeset
for help on using the changeset viewer.