Changeset 250828a in mainline


Ignore:
Timestamp:
2013-04-11T17:52:09Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d1f144a
Parents:
c799138
Message:

hound: let the first stream change format if we are not yet connected

format is set in connection creation routine, remove TODO

Location:
uspace/srv/audio/hound
Files:
2 edited

Legend:

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

    rc799138 r250828a  
    156156                audio_pcm_register_event_callback(dev->sess,
    157157                    device_event_callback, dev);\
    158                 // TODO set formats
    159158
    160159                /* Fill the buffer first. Fill the first two fragments,
  • uspace/srv/audio/hound/hound_ctx.c

    rc799138 r250828a  
    194194        fibril_mutex_lock(&ctx->guard);
    195195        list_append(&stream->link, &ctx->streams);
     196        if (list_count(&ctx->streams) == 1) {
     197                if (ctx->source && list_count(&ctx->source->connections) == 0)
     198                        ctx->source->format = stream->format;
     199        }
    196200        fibril_mutex_unlock(&ctx->guard);
    197201}
Note: See TracChangeset for help on using the changeset viewer.