Changeset b7fd2a0 in mainline for uspace/drv/audio/sb16/dsp.h
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/sb16/dsp.h
r36f0738 rb7fd2a0 76 76 } sb_dsp_t; 77 77 78 int sb_dsp_init(sb_dsp_t *dsp, sb16_regs_t *regs, ddf_dev_t *dev,78 errno_t sb_dsp_init(sb_dsp_t *dsp, sb16_regs_t *regs, ddf_dev_t *dev, 79 79 int dma8, int dma16); 80 80 void sb_dsp_interrupt(sb_dsp_t *dsp); 81 81 unsigned sb_dsp_query_cap(sb_dsp_t *dsp, audio_cap_t cap); 82 int sb_dsp_get_buffer_position(sb_dsp_t *dsp, size_t *size);83 int sb_dsp_test_format(sb_dsp_t *dsp, unsigned *channels, unsigned *rate,82 errno_t sb_dsp_get_buffer_position(sb_dsp_t *dsp, size_t *size); 83 errno_t sb_dsp_test_format(sb_dsp_t *dsp, unsigned *channels, unsigned *rate, 84 84 pcm_sample_format_t *format); 85 int sb_dsp_get_buffer(sb_dsp_t *dsp, void **buffer, size_t *size);86 int sb_dsp_set_event_session(sb_dsp_t *dsp, async_sess_t *session);85 errno_t sb_dsp_get_buffer(sb_dsp_t *dsp, void **buffer, size_t *size); 86 errno_t sb_dsp_set_event_session(sb_dsp_t *dsp, async_sess_t *session); 87 87 async_sess_t * sb_dsp_get_event_session(sb_dsp_t *dsp); 88 int sb_dsp_release_buffer(sb_dsp_t *dsp);89 int sb_dsp_start_playback(sb_dsp_t *dsp, unsigned frames,88 errno_t sb_dsp_release_buffer(sb_dsp_t *dsp); 89 errno_t sb_dsp_start_playback(sb_dsp_t *dsp, unsigned frames, 90 90 unsigned channels, unsigned sample_rate, pcm_sample_format_t format); 91 int sb_dsp_stop_playback(sb_dsp_t *dsp, bool immediate);92 int sb_dsp_start_capture(sb_dsp_t *dsp, unsigned frames,91 errno_t sb_dsp_stop_playback(sb_dsp_t *dsp, bool immediate); 92 errno_t sb_dsp_start_capture(sb_dsp_t *dsp, unsigned frames, 93 93 unsigned channels, unsigned sample_rate, pcm_sample_format_t format); 94 int sb_dsp_stop_capture(sb_dsp_t *dsp, bool immediate);94 errno_t sb_dsp_stop_capture(sb_dsp_t *dsp, bool immediate); 95 95 96 96 #endif
Note:
See TracChangeset
for help on using the changeset viewer.