Changeset 751d17a2 in mainline
- Timestamp:
- 2011-11-11T17:53:33Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ea8f83
- Parents:
- f6062f15
- Location:
- uspace/drv/audio/sb16
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp.c
rf6062f15 r751d17a2 185 185 pio_read_8(&dsp->regs->dsp_read_status); 186 186 187 static size_t interrupt_count = 0;188 189 187 const size_t remain_size = dsp->playing.size - 190 188 (dsp->playing.position - dsp->playing.data); 191 189 192 ddf_log_note("Interrupt count %zu, remaining: %zu.\n",193 ++interrupt_count, remain_size);194 190 if (remain_size == 0) { 195 191 ddf_log_note("Nothing more to play"); … … 215 211 return; 216 212 } 217 ddf_log_note("Playing full block.\n");218 213 memcpy(dsp->buffer.position, dsp->playing.position, PLAY_BLOCK_SIZE); 219 214 write_barrier(); -
uspace/drv/audio/sb16/sb16.c
rf6062f15 r751d17a2 30 30 #include <str_error.h> 31 31 32 #include "beep.h" 32 33 #include "ddf_log.h" 33 34 #include "dsp_commands.h" … … 91 92 sb_mixer_type_str(drv->mixer.type)); 92 93 94 ddf_log_note("Playing startup sound.\n"); 95 sb_dsp_play(&drv->dsp, beep, beep_size, 44100, 1, 8); 96 93 97 return EOK; 94 98 } … … 109 113 pio_write_8(&drv->regs->mixer_address, MIXER_IRQ_STATUS_ADDRESS); 110 114 const uint8_t irq_mask = pio_read_8(&drv->regs->mixer_data); 111 ddf_log_debug("SB16 IRQ mask %hhx.\n", irq_mask);112 115 /* Third bit is MPU-401 interrupt */ 113 116 if (irq_mask & 0x4) {
Note:
See TracChangeset
for help on using the changeset viewer.