Changeset 3bacee1 in mainline for uspace/srv/audio/hound/hound_ctx.c


Ignore:
Timestamp:
2018-04-12T16:27:17Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3cf22f9
Parents:
76d0981d
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
Message:

Make ccheck-fix again and commit more good files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/hound_ctx.c

    r76d0981d r3bacee1  
    209209        fibril_mutex_lock(&stream->guard);
    210210        if (stream->allowed_size &&
    211             (audio_pipe_bytes(&stream->fifo) + adata->size
    212                 > stream->allowed_size)) {
     211            (audio_pipe_bytes(&stream->fifo) + adata->size >
     212            stream->allowed_size)) {
    213213                fibril_mutex_unlock(&stream->guard);
    214214                return EOVERFLOW;
     
    246246 */
    247247hound_ctx_stream_t *hound_ctx_create_stream(hound_ctx_t *ctx, int flags,
    248         pcm_format_t format, size_t buffer_size)
     248    pcm_format_t format, size_t buffer_size)
    249249{
    250250        assert(ctx);
     
    308308        while (stream->allowed_size &&
    309309            (audio_pipe_bytes(&stream->fifo) + size > stream->allowed_size)) {
    310             fibril_condvar_wait(&stream->change, &stream->guard);
     310                fibril_condvar_wait(&stream->change, &stream->guard);
    311311
    312312        }
     
    336336        fibril_mutex_lock(&stream->guard);
    337337        while (audio_pipe_bytes(&stream->fifo) < size) {
    338             fibril_condvar_wait(&stream->change, &stream->guard);
     338                fibril_condvar_wait(&stream->change, &stream->guard);
    339339        }
    340340
     
    466466                if (ret != EOK)
    467467                        log_error("Failed to push data to stream: %s",
    468                                 str_error(ret));
     468                            str_error(ret));
    469469        }
    470470        audio_data_unref(adata);
Note: See TracChangeset for help on using the changeset viewer.