Changeset d86c9736 in mainline for uspace/drv/audio/sb16/pcm_iface.c
- Timestamp:
- 2012-08-19T14:35:32Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fa91c0f
- Parents:
- ad42844
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/pcm_iface.c
rad42844 rd86c9736 104 104 } 105 105 106 static int sb_start_ record(ddf_fun_t *fun, unsigned frames,106 static int sb_start_capture(ddf_fun_t *fun, unsigned frames, 107 107 unsigned channels, unsigned sample_rate, pcm_sample_format_t format) 108 108 { … … 110 110 assert(fun->driver_data); 111 111 sb_dsp_t *dsp = fun->driver_data; 112 return sb_dsp_start_ record(112 return sb_dsp_start_capture( 113 113 dsp, frames, channels, sample_rate, format); 114 114 } 115 115 116 static int sb_stop_ record(ddf_fun_t *fun)116 static int sb_stop_capture(ddf_fun_t *fun) 117 117 { 118 118 assert(fun); 119 119 assert(fun->driver_data); 120 120 sb_dsp_t *dsp = fun->driver_data; 121 return sb_dsp_stop_ record(dsp);121 return sb_dsp_stop_capture(dsp); 122 122 } 123 123 … … 134 134 .stop_playback = sb_stop_playback, 135 135 136 .start_ record = sb_start_record,137 .stop_ record = sb_stop_record136 .start_capture = sb_start_capture, 137 .stop_capture = sb_stop_capture, 138 138 }; 139 139 /**
Note:
See TracChangeset
for help on using the changeset viewer.