Changeset 751d17a2 in mainline for uspace/drv/audio/sb16/sb16.c


Ignore:
Timestamp:
2011-11-11T17:53:33Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0ea8f83
Parents:
f6062f15
Message:

sb16: Play 'beep' sound on startup. Reove debug statements from interrupt routines.

File:
1 edited

Legend:

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

    rf6062f15 r751d17a2  
    3030#include <str_error.h>
    3131
     32#include "beep.h"
    3233#include "ddf_log.h"
    3334#include "dsp_commands.h"
     
    9192            sb_mixer_type_str(drv->mixer.type));
    9293
     94        ddf_log_note("Playing startup sound.\n");
     95        sb_dsp_play(&drv->dsp, beep, beep_size, 44100, 1, 8);
     96
    9397        return EOK;
    9498}
     
    109113                pio_write_8(&drv->regs->mixer_address, MIXER_IRQ_STATUS_ADDRESS);
    110114                const uint8_t irq_mask = pio_read_8(&drv->regs->mixer_data);
    111                 ddf_log_debug("SB16 IRQ mask %hhx.\n", irq_mask);
    112115                /* Third bit is MPU-401 interrupt */
    113116                if (irq_mask & 0x4) {
Note: See TracChangeset for help on using the changeset viewer.