Changeset 8565a42 in mainline for uspace/drv/audio/sb16


Ignore:
Timestamp:
2018-03-02T20:34:50Z (8 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1a81f69, d5e5fd1
Parents:
3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
git-committer:
GitHub <noreply@…> (2018-03-02 20:34:50)
Message:

Remove all trailing whitespace, everywhere.

See individual commit messages for details.

File:
1 edited

Legend:

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

    r3061bc1 r8565a42  
    171171{
    172172        assert(dsp);
    173        
     173
    174174        if ((size > MAX_BUFFER_SIZE) || (size == 0) || ((size % 2) == 1))
    175175                size = MAX_BUFFER_SIZE;
    176        
     176
    177177        uintptr_t pa = 0;
    178178        void *buffer = AS_AREA_ANY;
    179        
     179
    180180        errno_t ret = dmamem_map_anonymous(size, DMAMEM_16MiB | 0x0000ffff,
    181181            AS_AREA_WRITE | AS_AREA_READ, 0, &pa, &buffer);
     
    184184                return ENOMEM;
    185185        }
    186        
     186
    187187        ddf_log_verbose("Setup DMA buffer at %p (%zu) %zu.", buffer, pa, size);
    188188        assert(pa < (1 << 24));
    189        
     189
    190190        /* Setup 16 bit channel */
    191191        ret = setup_dma(dsp, pa, size);
     
    198198                dmamem_unmap_anonymous(buffer);
    199199        }
    200        
     200
    201201        return ret;
    202202}
Note: See TracChangeset for help on using the changeset viewer.