Changeset 03362fbd in mainline for uspace/drv/audio/sb16/sb16.c
- Timestamp:
- 2013-02-09T23:14:45Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 22dfd38
- Parents:
- b5d2e57 (diff), 005b765 (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
rb5d2e57 r03362fbd 27 27 */ 28 28 29 #define _DDF_DATA_IMPLANT 30 29 31 #include <errno.h> 30 32 #include <str_error.h> … … 115 117 return ret; 116 118 } 117 dsp_fun->driver_data = &sb->dsp; 118 dsp_fun->ops = &sb_pcm_ops; 119 //TODO remove data implant 120 ddf_fun_data_implant(dsp_fun, &sb->dsp); 121 ddf_fun_set_ops(dsp_fun, &sb_pcm_ops); 119 122 ddf_log_note("Sound blaster DSP (%x.%x) initialized.", 120 123 sb->dsp.version.major, sb->dsp.version.minor); … … 124 127 ddf_log_error( 125 128 "Failed to bind PCM function: %s.", str_error(ret)); 126 dsp_fun->driver_data = NULL;129 // TODO implanted data 127 130 ddf_fun_destroy(dsp_fun); 128 131 return ret; … … 133 136 ddf_log_error("Failed register PCM function in category: %s.", 134 137 str_error(ret)); 135 d sp_fun->driver_data = NULL;136 ddf_fun_unbind(dsp_fun);138 ddf_fun_unbind(dsp_fun); 139 // TODO implanted data 137 140 ddf_fun_destroy(dsp_fun); 138 141 return ret; … … 147 150 ddf_log_error("Failed to create mixer function."); 148 151 ddf_fun_unbind(dsp_fun); 149 dsp_fun->driver_data = NULL;152 // TODO implanted data 150 153 ddf_fun_destroy(dsp_fun); 151 154 return ENOMEM; … … 156 159 str_error(ret)); 157 160 ddf_fun_unbind(dsp_fun); 158 dsp_fun->driver_data = NULL;161 // TODO implanted data 159 162 ddf_fun_destroy(dsp_fun); 160 163 ddf_fun_destroy(mixer_fun); … … 164 167 ddf_log_note("Initialized mixer: %s.", 165 168 sb_mixer_type_str(sb->mixer.type)); 166 mixer_fun->driver_data = &sb->mixer;167 mixer_fun->ops = &sb_mixer_ops;169 ddf_fun_data_implant(mixer_fun, &sb->mixer); 170 ddf_fun_set_ops(mixer_fun, &sb_mixer_ops); 168 171 169 172 ret = ddf_fun_bind(mixer_fun); … … 171 174 ddf_log_error( 172 175 "Failed to bind mixer function: %s.", str_error(ret)); 173 mixer_fun->driver_data = NULL;176 // TODO implanted data 174 177 ddf_fun_destroy(mixer_fun); 175 178 176 179 ddf_fun_unbind(dsp_fun); 177 dsp_fun->driver_data = NULL;180 // TODO implanted data 178 181 ddf_fun_destroy(dsp_fun); 179 182 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.