Changes in uspace/drv/audio/sb16/sb16.c [9bd4615:7de1988c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/sb16.c
r9bd4615 r7de1988c 27 27 */ 28 28 29 #define _DDF_DATA_IMPLANT 30 29 31 #include <errno.h> 30 32 #include <str_error.h> … … 119 121 return ret; 120 122 } 121 123 //TODO remove data implant 124 ddf_fun_data_implant(dsp_fun, &sb->dsp); 122 125 ddf_fun_set_ops(dsp_fun, &sb_pcm_ops); 123 126 ddf_log_note("Sound blaster DSP (%x.%x) initialized.", … … 128 131 ddf_log_error( 129 132 "Failed to bind PCM function: %s.", str_error(ret)); 133 // TODO implanted data 130 134 ddf_fun_destroy(dsp_fun); 131 135 return ret; … … 137 141 str_error(ret)); 138 142 ddf_fun_unbind(dsp_fun); 143 // TODO implanted data 139 144 ddf_fun_destroy(dsp_fun); 140 145 return ret; … … 149 154 ddf_log_error("Failed to create mixer function."); 150 155 ddf_fun_unbind(dsp_fun); 156 // TODO implanted data 151 157 ddf_fun_destroy(dsp_fun); 152 158 return ENOMEM; … … 157 163 str_error(ret)); 158 164 ddf_fun_unbind(dsp_fun); 165 // TODO implanted data 159 166 ddf_fun_destroy(dsp_fun); 160 167 ddf_fun_destroy(mixer_fun); … … 164 171 ddf_log_note("Initialized mixer: %s.", 165 172 sb_mixer_type_str(sb->mixer.type)); 173 ddf_fun_data_implant(mixer_fun, &sb->mixer); 166 174 ddf_fun_set_ops(mixer_fun, &sb_mixer_ops); 167 175 … … 170 178 ddf_log_error( 171 179 "Failed to bind mixer function: %s.", str_error(ret)); 180 // TODO implanted data 172 181 ddf_fun_destroy(mixer_fun); 173 ddf_fun_unbind(dsp_fun); 182 183 ddf_fun_unbind(dsp_fun); 184 // TODO implanted data 174 185 ddf_fun_destroy(dsp_fun); 175 186 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.