Changeset bde691c in mainline for uspace/drv/audio/sb16/sb16.c
- Timestamp:
- 2011-09-26T15:24:48Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf38143
- Parents:
- 050d4fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/sb16.c
r050d4fa rbde691c 41 41 { .cmdcount = 1, .cmds = (irq_cmd_t*)irq_cmds }; 42 42 43 static mixer_type_t mixer_type_by_dsp_version(unsigned major, unsigned minor) 43 static inline sb_mixer_type_t sb_mixer_type_by_dsp_version( 44 unsigned major, unsigned minor) 44 45 { 45 46 switch (major) … … 91 92 92 93 /* Initialize mixer */ 93 const mixer_type_t mixer_type =mixer_type_by_dsp_version(94 const sb_mixer_type_t mixer_type = sb_mixer_type_by_dsp_version( 94 95 drv->dsp_version.major, drv->dsp_version.minor); 95 96 96 ret = mixer_init(&drv->mixer, drv->regs, mixer_type);97 ret = sb_mixer_init(&drv->mixer, drv->regs, mixer_type); 97 98 if (ret != EOK) { 98 99 ddf_log_error("Failed to initialize SB mixer: %s.\n", … … 101 102 } 102 103 ddf_log_note("Initialized mixer: %s.\n", 103 mixer_type_str(drv->mixer.type));104 sb_mixer_type_str(drv->mixer.type)); 104 105 105 106 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.