Changes in uspace/drv/audio/sb16/pcm_iface.c [9bd4615:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/pcm_iface.c
r9bd4615 rb7fd2a0 47 47 } 48 48 49 static int sb_get_info_str(ddf_fun_t *fun, const char** name)49 static errno_t sb_get_info_str(ddf_fun_t *fun, const char** name) 50 50 { 51 51 if (name) … … 59 59 } 60 60 61 static int sb_test_format(ddf_fun_t *fun, unsigned *channels, unsigned *rate,61 static errno_t sb_test_format(ddf_fun_t *fun, unsigned *channels, unsigned *rate, 62 62 pcm_sample_format_t *format) 63 63 { 64 64 return sb_dsp_test_format(fun_to_dsp(fun), channels, rate, format); 65 65 } 66 static int sb_get_buffer(ddf_fun_t *fun, void **buffer, size_t *size)66 static errno_t sb_get_buffer(ddf_fun_t *fun, void **buffer, size_t *size) 67 67 { 68 68 return sb_dsp_get_buffer(fun_to_dsp(fun), buffer, size); 69 69 } 70 70 71 static int sb_get_buffer_position(ddf_fun_t *fun, size_t *size)71 static errno_t sb_get_buffer_position(ddf_fun_t *fun, size_t *size) 72 72 { 73 73 return sb_dsp_get_buffer_position(fun_to_dsp(fun), size); 74 74 } 75 75 76 static int sb_set_event_session(ddf_fun_t *fun, async_sess_t *sess)76 static errno_t sb_set_event_session(ddf_fun_t *fun, async_sess_t *sess) 77 77 { 78 78 return sb_dsp_set_event_session(fun_to_dsp(fun), sess); … … 84 84 } 85 85 86 static int sb_release_buffer(ddf_fun_t *fun)86 static errno_t sb_release_buffer(ddf_fun_t *fun) 87 87 { 88 88 return sb_dsp_release_buffer(fun_to_dsp(fun)); 89 89 } 90 90 91 static int sb_start_playback(ddf_fun_t *fun, unsigned frames,91 static errno_t sb_start_playback(ddf_fun_t *fun, unsigned frames, 92 92 unsigned channels, unsigned sample_rate, pcm_sample_format_t format) 93 93 { … … 96 96 } 97 97 98 static int sb_stop_playback(ddf_fun_t *fun, bool immediate)98 static errno_t sb_stop_playback(ddf_fun_t *fun, bool immediate) 99 99 { 100 100 return sb_dsp_stop_playback(fun_to_dsp(fun), immediate); 101 101 } 102 102 103 static int sb_start_capture(ddf_fun_t *fun, unsigned frames,103 static errno_t sb_start_capture(ddf_fun_t *fun, unsigned frames, 104 104 unsigned channels, unsigned sample_rate, pcm_sample_format_t format) 105 105 { … … 108 108 } 109 109 110 static int sb_stop_capture(ddf_fun_t *fun, bool immediate)110 static errno_t sb_stop_capture(ddf_fun_t *fun, bool immediate) 111 111 { 112 112 return sb_dsp_stop_capture(fun_to_dsp(fun), immediate);
Note:
See TracChangeset
for help on using the changeset viewer.