Changes in uspace/drv/audio/hdaudio/stream.h [0e4c5f0:3fec817] in mainline
- File:
-
- 1 edited
-
uspace/drv/audio/hdaudio/stream.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/stream.h
r0e4c5f0 r3fec817 48 48 } hda_stream_dir_t; 49 49 50 typedef struct hda_stream_buffers { 50 typedef struct hda_stream { 51 hda_t *hda; 52 /** Stream ID */ 53 uint8_t sid; 54 /** Stream descriptor index */ 55 uint8_t sdid; 56 /** Direction */ 57 hda_stream_dir_t dir; 51 58 /** Number of buffers */ 52 59 size_t nbuffers; … … 61 68 /** Physical addresses of buffers */ 62 69 uintptr_t *buf_phys; 63 } hda_stream_buffers_t;64 65 typedef struct hda_stream {66 hda_t *hda;67 /** Stream ID */68 uint8_t sid;69 /** Stream descriptor index */70 uint8_t sdid;71 /** Direction */72 hda_stream_dir_t dir;73 /** Buffers */74 hda_stream_buffers_t *buffers;75 70 /** Stream format */ 76 71 uint32_t fmt; 77 72 } hda_stream_t; 78 73 79 extern int hda_stream_buffers_alloc(hda_t *, hda_stream_buffers_t **); 80 extern void hda_stream_buffers_free(hda_stream_buffers_t *); 81 extern hda_stream_t *hda_stream_create(hda_t *, hda_stream_dir_t, 82 hda_stream_buffers_t *, uint32_t); 74 extern hda_stream_t *hda_stream_create(hda_t *, hda_stream_dir_t, uint32_t); 83 75 extern void hda_stream_destroy(hda_stream_t *); 84 76 extern void hda_stream_start(hda_stream_t *);
Note:
See TracChangeset
for help on using the changeset viewer.
