Changeset 15d0046 in mainline for uspace/drv/audio/sb16/sb16.c
- Timestamp:
- 2014-09-12T13:22:33Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b20126
- Parents:
- 8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/sb16.c
r8db09e4 r15d0046 27 27 */ 28 28 29 #define _DDF_DATA_IMPLANT30 31 29 #include <errno.h> 32 30 #include <str_error.h> … … 121 119 return ret; 122 120 } 123 //TODO remove data implant 124 ddf_fun_data_implant(dsp_fun, &sb->dsp); 121 125 122 ddf_fun_set_ops(dsp_fun, &sb_pcm_ops); 126 123 ddf_log_note("Sound blaster DSP (%x.%x) initialized.", … … 131 128 ddf_log_error( 132 129 "Failed to bind PCM function: %s.", str_error(ret)); 133 // TODO implanted data134 130 ddf_fun_destroy(dsp_fun); 135 131 return ret; … … 141 137 str_error(ret)); 142 138 ddf_fun_unbind(dsp_fun); 143 // TODO implanted data144 139 ddf_fun_destroy(dsp_fun); 145 140 return ret; … … 154 149 ddf_log_error("Failed to create mixer function."); 155 150 ddf_fun_unbind(dsp_fun); 156 // TODO implanted data157 151 ddf_fun_destroy(dsp_fun); 158 152 return ENOMEM; … … 163 157 str_error(ret)); 164 158 ddf_fun_unbind(dsp_fun); 165 // TODO implanted data166 159 ddf_fun_destroy(dsp_fun); 167 160 ddf_fun_destroy(mixer_fun); … … 171 164 ddf_log_note("Initialized mixer: %s.", 172 165 sb_mixer_type_str(sb->mixer.type)); 173 ddf_fun_data_implant(mixer_fun, &sb->mixer);174 166 ddf_fun_set_ops(mixer_fun, &sb_mixer_ops); 175 167 … … 178 170 ddf_log_error( 179 171 "Failed to bind mixer function: %s.", str_error(ret)); 180 // TODO implanted data181 172 ddf_fun_destroy(mixer_fun); 182 183 ddf_fun_unbind(dsp_fun); 184 // TODO implanted data 173 ddf_fun_unbind(dsp_fun); 185 174 ddf_fun_destroy(dsp_fun); 186 175 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.