Changeset 01282fc in mainline
- Timestamp:
- 2011-09-25T12:10:59Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7a0a0f5
- Parents:
- cf083e8
- Location:
- uspace/drv/audio/sb16
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/Makefile
rcf083e8 r01282fc 39 39 SOURCES = \ 40 40 main.c \ 41 mixer.c \ 41 42 sb16.c 42 43 -
uspace/drv/audio/sb16/registers.h
rcf083e8 r01282fc 35 35 #ifndef DRV_AUDIO_SB16_REGISTERS_H 36 36 #define DRV_AUDIO_SB16_REGISTERS_H 37 38 #include <ddi.h> 37 39 38 40 typedef struct sb16_regs { -
uspace/drv/audio/sb16/sb16.c
rcf083e8 r01282fc 28 28 29 29 #include <errno.h> 30 #include <str_error.h> 30 31 #include <libarch/ddi.h> 31 32 … … 41 42 { .cmdcount = 1, .cmds = (irq_cmd_t*)irq_cmds }; 42 43 44 static mixer_type_t mixer_type_by_dsp_version(unsigned major, unsigned minor) 45 { 46 return SB_MIXER_UNKNOWN; 47 } 43 48 /*----------------------------------------------------------------------------*/ 44 49 irq_code_t * sb16_irq_code(void) … … 79 84 drv->dsp_version.major, drv->dsp_version.minor); 80 85 86 /* Initialize mixer */ 87 drv->mixer = mixer_type_by_dsp_version( 88 drv->dsp_version.major, drv->dsp_version.minor); 81 89 82 // TODO Initialize mixer 90 ret = mixer_init(drv->regs, drv->mixer); 91 if (ret != EOK) { 92 ddf_log_error("Failed to initialize SB mixer: %s.\n", 93 str_error(ret)); 94 return ret; 95 } 96 ddf_log_note("Initialized mixer: %s.\n", mixer_type_to_str(drv->mixer)); 97 83 98 return EOK; 84 99 } -
uspace/drv/audio/sb16/sb16.h
rcf083e8 r01282fc 38 38 #include <ddf/driver.h> 39 39 #include <ddi.h> 40 41 #include "mixer.h" 40 42 #include "registers.h" 41 43 … … 47 49 uint8_t minor; 48 50 } dsp_version; 51 mixer_type_t mixer; 49 52 } sb16_drv_t; 50 53
Note:
See TracChangeset
for help on using the changeset viewer.