Changeset d758301 in mainline for uspace/drv/audio/sb16/dsp.c


Ignore:
Timestamp:
2012-08-19T13:46:30Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ad42844
Parents:
d2765ab3
Message:

sb16: Check for buffer availability in playback/record.

Only check for session if interrupt events are required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/audio/sb16/dsp.c

    rd2765ab3 rd758301  
    330330        assert(dsp);
    331331
    332         if (!dsp->event_session)
     332        if (!dsp->buffer.data)
    333333                return EINVAL;
    334334
     
    341341        /* Client requested regular interrupts */
    342342        if (frames) {
     343                if (!dsp->event_session)
     344                        return EINVAL;
    343345                dsp->event_exchange = async_exchange_begin(dsp->event_session);
    344346                if (!dsp->event_exchange)
     
    396398{
    397399        assert(dsp);
    398 
    399         if (!dsp->event_session)
     400        if (!dsp->buffer.data)
    400401                return EINVAL;
    401402
     
    408409        /* client requested regular interrupts */
    409410        if (frames) {
     411                if (!dsp->event_session)
     412                        return EINVAL;
    410413                dsp->event_exchange = async_exchange_begin(dsp->event_session);
    411414                if (!dsp->event_exchange)
Note: See TracChangeset for help on using the changeset viewer.