Changeset 02ead2e in mainline for uspace/srv/audio/hound/iface.c


Ignore:
Timestamp:
2013-04-05T15:43:02Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4389076
Parents:
6d74977
Message:

hound: sleep and repeat while the buffer is full

File:
1 edited

Legend:

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

    r6d74977 r02ead2e  
    148148static int iface_stream_data_write(void *stream, const void *buffer, size_t size)
    149149{
    150         return hound_ctx_stream_write(stream, buffer, size);
     150        int ret = EOK;
     151        do {
     152                ret = hound_ctx_stream_write(stream, buffer, size);
     153        } while (ret == EBUSY && (async_usleep(100), 1));
     154        return ret;
    151155}
    152156
Note: See TracChangeset for help on using the changeset viewer.