Changes in uspace/drv/audio/sb16/dsp.c [d5c1051:53a309e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp.c
rd5c1051 r53a309e 290 290 return 16535; 291 291 default: 292 return -1;292 return ENOTSUP; 293 293 } 294 294 } … … 303 303 304 304 // TODO: Assumes DMA 16 305 size_t remain; 306 int rc = hw_res_dma_channel_remain(sess, dsp->dma16_channel, &remain); 307 if (rc == EOK) { 305 const int remain = hw_res_dma_channel_remain(sess, dsp->dma16_channel); 306 if (remain >= 0) { 308 307 *pos = dsp->buffer.size - remain; 309 } 310 return rc; 308 return EOK; 309 } 310 return remain; 311 311 } 312 312
Note:
See TracChangeset
for help on using the changeset viewer.