Changeset a4a4e47 in mainline


Ignore:
Timestamp:
2011-09-26T07:38:34Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b1926d0
Parents:
57542304
Message:

sb16: Simplify direct mode sound IO.

(Follow hw design guide)

Location:
uspace/drv/audio/sb16
Files:
2 edited

Legend:

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

    r57542304 ra4a4e47  
    4343        /* In microseconds */
    4444        const unsigned wait_period = 1000000 / sampling_rate;
    45         int ret;
    4645        while (size--) {
    47                 ret = dsp_write(regs, DIRECT_8B_OUTPUT);
    48                 if (ret != EOK)
    49                         return ret;
    50                 ret = dsp_write(regs, *data++);
    51                 if (ret != EOK)
    52                         return ret;
     46                pio_write_8(&regs->dsp_write, DIRECT_8B_OUTPUT);
     47                pio_write_8(&regs->dsp_write, *data++);
    5348                udelay(wait_period);
    5449        }
  • uspace/drv/audio/sb16/mixer.c

    r57542304 ra4a4e47  
    3131#include <libarch/ddi.h>
    3232
     33#include "ddf_log.h"
    3334#include "mixer.h"
    3435
Note: See TracChangeset for help on using the changeset viewer.