Changeset 124f9bd in mainline for uspace/drv/audio/sb16/sb16.c
- Timestamp:
- 2012-07-05T20:52:36Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e941bf8
- Parents:
- 4bec78f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/sb16.c
r4bec78f r124f9bd 99 99 if (ret != EOK) 100 100 return ret; 101 ddf_log_debug("PIO registers at %p accessible. \n", sb->regs);101 ddf_log_debug("PIO registers at %p accessible.", sb->regs); 102 102 103 103 /* Initialize DSP */ 104 104 ddf_fun_t *dsp_fun = ddf_fun_create(dev, fun_exposed, "dsp"); 105 105 if (!dsp_fun) { 106 ddf_log_error("Failed to create dsp function. \n");106 ddf_log_error("Failed to create dsp function."); 107 107 return ENOMEM; 108 108 } … … 110 110 ret = sb_dsp_init(&sb->dsp, sb->regs, dev, dma8, dma16); 111 111 if (ret != EOK) { 112 ddf_log_error("Failed to initialize SB DSP: %s. \n",112 ddf_log_error("Failed to initialize SB DSP: %s.", 113 113 str_error(ret)); 114 114 return ret; … … 116 116 dsp_fun->driver_data = &sb->dsp; 117 117 dsp_fun->ops = &sb_pcm_ops; 118 ddf_log_note("Sound blaster DSP (%x.%x) initialized. \n",118 ddf_log_note("Sound blaster DSP (%x.%x) initialized.", 119 119 sb->dsp.version.major, sb->dsp.version.minor); 120 120 … … 122 122 if (ret != EOK) { 123 123 ddf_log_error( 124 "Failed to bind DSP function: %s. \n", str_error(ret));124 "Failed to bind DSP function: %s.", str_error(ret)); 125 125 dsp_fun->driver_data = NULL; 126 126 ddf_fun_destroy(dsp_fun); … … 134 134 ddf_fun_t *mixer_fun = ddf_fun_create(dev, fun_exposed, "mixer"); 135 135 if (!mixer_fun) { 136 ddf_log_error("Failed to create mixer function. \n");136 ddf_log_error("Failed to create mixer function."); 137 137 ddf_fun_unbind(dsp_fun); 138 138 dsp_fun->driver_data = NULL; … … 142 142 ret = sb_mixer_init(&sb->mixer, sb->regs, mixer_type); 143 143 if (ret != EOK) { 144 ddf_log_error("Failed to initialize SB mixer: %s. \n",144 ddf_log_error("Failed to initialize SB mixer: %s.", 145 145 str_error(ret)); 146 146 ddf_fun_unbind(dsp_fun); … … 151 151 } 152 152 153 ddf_log_note("Initialized mixer: %s. \n",153 ddf_log_note("Initialized mixer: %s.", 154 154 sb_mixer_type_str(sb->mixer.type)); 155 155 mixer_fun->driver_data = &sb->mixer; … … 159 159 if (ret != EOK) { 160 160 ddf_log_error( 161 "Failed to bind mixer function: %s. \n", str_error(ret));161 "Failed to bind mixer function: %s.", str_error(ret)); 162 162 mixer_fun->driver_data = NULL; 163 163 ddf_fun_destroy(mixer_fun); … … 192 192 } 193 193 } else { 194 ddf_log_debug("SB16 interrupt. \n");194 ddf_log_debug("SB16 interrupt."); 195 195 } 196 196 sb_dsp_interrupt(&sb->dsp);
Note:
See TracChangeset
for help on using the changeset viewer.