Changeset 763444e in mainline
- Timestamp:
- 2011-09-25T19:41:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 57542304
- Parents:
- 0687e1b
- Location:
- uspace/drv/audio/sb16
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/Makefile
r0687e1b r763444e 38 38 39 39 SOURCES = \ 40 dsp.c \ 40 41 main.c \ 41 42 mixer.c \ -
uspace/drv/audio/sb16/dsp.h
r0687e1b r763444e 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 28 /** @addtogroup drvaudiosb16 30 29 * @{ 31 30 */ 32 31 /** @file 33 * @brief S B16 main structure combining all functionality32 * @brief Sound Blaster Digital Sound Processor (DSP) helper functions. 34 33 */ 35 34 #ifndef DRV_AUDIO_SB16_DSP_H … … 37 36 38 37 #include <libarch/ddi.h> 38 #include <errno.h> 39 39 40 40 #include "registers.h" 41 #include "dsp_commands.h" 41 42 42 43 #ifndef DSP_PIO_DELAY … … 90 91 pio_write_8(®s->dsp_reset, 0); 91 92 } 93 /*----------------------------------------------------------------------------*/ 94 int dsp_play_direct(sb16_regs_t *regs, const uint8_t *data, size_t size, 95 unsigned sample_rate, unsigned channels, unsigned bit_depth); 92 96 #endif 93 97 /** -
uspace/drv/audio/sb16/dsp_commands.h
r0687e1b r763444e 36 36 #define DRV_AUDIO_SB16_DSP_COMMANDS_H 37 37 38 /** See Sound Blaster Series HW programming Guide Chapter 6. */38 /** See Sound Blaster Series HW programming Guide Chapter 6. */ 39 39 typedef enum dsp_command { 40 40 DIRECT_8B_OUTPUT = 0x20, /* Followed by unsigned byte of digital data, -
uspace/drv/audio/sb16/sb16.c
r0687e1b r763444e 87 87 dsp_read(drv->regs, &drv->dsp_version.major); 88 88 dsp_read(drv->regs, &drv->dsp_version.minor); 89 ddf_log_note("Sound blaster DSP (%x.%x) Initialized.\n",89 ddf_log_note("Sound blaster DSP (%x.%x) initialized.\n", 90 90 drv->dsp_version.major, drv->dsp_version.minor); 91 91
Note:
See TracChangeset
for help on using the changeset viewer.