Changeset dce7e41 in mainline for uspace/drv/audio/sb16/sb16.c


Ignore:
Timestamp:
2011-10-21T21:59:30Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
962ef67
Parents:
f14e6ea
Message:

sb16: Implement playback.

Use 16bit dma transfers for now.

File:
1 edited

Legend:

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

    rf14e6ea rdce7e41  
    103103{
    104104        assert(drv);
    105         ddf_log_note("SB16 interrupt.\n");
    106105        /* The acknowledgment of interrupts on DSP version 4.xx is different;
    107106         * It can contain MPU-401 indicator and DMA16 transfers are acked
     
    110109                pio_write_8(&drv->regs->mixer_address, MIXER_IRQ_ADDRESS);
    111110                const uint8_t irq_mask = pio_read_8(&drv->regs->mixer_data);
    112                 ddf_log_note("SB16 IRQ mask %hhx.\n", irq_mask);
     111                ddf_log_debug("SB16 IRQ mask %hhx.\n", irq_mask);
    113112                /* Third bit is MPU-401 interrupt */
    114113                if (irq_mask & 0x4) {
    115114                        return;
    116115                }
     116        } else {
     117                ddf_log_debug("SB16 interrupt.\n");
    117118        }
    118119        sb_dsp_interrupt(&drv->dsp);
    119 
    120120}
Note: See TracChangeset for help on using the changeset viewer.