Changeset 962ef67 in mainline
- Timestamp:
- 2011-10-22T08:45:56Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5984107
- Parents:
- dce7e41
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp.c
rdce7e41 r962ef67 114 114 dsp->buffer.position = buffer; 115 115 dsp->buffer.size = BUFFER_SIZE; 116 memset(buffer, 0x8f, BUFFER_SIZE);116 bzero(buffer, BUFFER_SIZE); 117 117 dma_prepare_channel(SB_DMA_CHAN_16, false, true, BLOCK_DMA); 118 118 /* Set 8bit channel */ … … 196 196 sb_dsp_write(dsp, SINGLE_DMA_16B_DA); 197 197 sb_dsp_write(dsp, dsp->playing.mode); 198 sb_dsp_write(dsp, remain_size& 0xff);199 sb_dsp_write(dsp, remain_size>> 8);198 sb_dsp_write(dsp, (remain_size - 1) & 0xff); 199 sb_dsp_write(dsp, (remain_size - 1) >> 8); 200 200 return; 201 201 } … … 262 262 sb_dsp_write(dsp, AUTO_DMA_16B_DA_FIFO); 263 263 sb_dsp_write(dsp, dsp->playing.mode); 264 sb_dsp_write(dsp, play_size& 0xff);265 sb_dsp_write(dsp, play_size>> 8);264 sb_dsp_write(dsp, (play_size - 1) & 0xff); 265 sb_dsp_write(dsp, (play_size - 1) >> 8); 266 266 267 267 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.