Changeset b266f9e in mainline for uspace/srv/audio/hound/iface.c
- Timestamp:
- 2013-04-04T11:15:41Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf13c9a4
- Parents:
- 6133470
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/audio/hound/iface.c
r6133470 rb266f9e 112 112 pcm_format_t format, size_t size, void **data) 113 113 { 114 log_info("%s: %p, %d %x ch:%u r:%u f:%s", __FUNCTION__, server, id, 114 assert(data); 115 assert(server); 116 117 log_verbose("%s: %p, %d %x ch:%u r:%u f:%s", __FUNCTION__, server, id, 115 118 flags, format.channels, format.sampling_rate, 116 119 pcm_sample_format_str(format.sample_format)); 117 *data = (void*)"TEST_STREAM"; 118 return ENOTSUP; 120 hound_ctx_t *ctx = hound_get_ctx_by_id(server, id); 121 if (!ctx) 122 return ENOENT; 123 hound_ctx_stream_t *stream = 124 hound_ctx_create_stream(ctx, flags, format, size); 125 if (!stream) 126 return ENOMEM; 127 *data = stream; 128 return EOK; 119 129 } 120 130 121 131 static int iface_rem_stream(void *server, void *stream) 122 132 { 123 log_info("%s: %p, %s", __FUNCTION__, server, (char *)stream); 124 return ENOTSUP; 133 log_verbose("%s: %p, %s", __FUNCTION__, server, (char *)stream); 134 hound_ctx_destroy_stream(stream); 135 return EOK; 125 136 } 126 137 127 138 static int iface_stream_data_read(void *stream, void *buffer, size_t size) 128 139 { 129 log_ info("%s: %s, %zu", __FUNCTION__, (char *)stream, size);140 log_verbose("%p:, %zu", stream, size); 130 141 return ENOTSUP; 131 142 } … … 133 144 static int iface_stream_data_write(void *stream, const void *buffer, size_t size) 134 145 { 135 log_ info("%s: %s, %zu", __FUNCTION__, (char *)stream, size);146 log_verbose("%p: %zu", stream, size); 136 147 return ENOTSUP; 137 148 }
Note:
See TracChangeset
for help on using the changeset viewer.