Ignore:
Timestamp:
2011-10-06T12:26:40Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e0f9950
Parents:
d2134da
Message:

sb16: Fix up DMA channel border cases

File:
1 edited

Legend:

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

    rd2134da raa5ae788  
    240240    unsigned channel, uintptr_t pa, size_t size)
    241241{
    242         if (channel == 4 || channel > 7)
     242        if (channel <= 4 || channel > 7)
    243243                return ENOTSUP;
    244244        assert(controller);
     
    286286        if (!controller)
    287287                controller = dma_controller_init();
     288
    288289        if (!controller)
    289290                return EIO;
    290         if (channel <= 4)
     291
     292        if (channel < 4)
    291293                return dma_setup_channel_8bit(controller, channel, pa, size);
    292294        else
Note: See TracChangeset for help on using the changeset viewer.