Changeset 34 for GPL/trunk/lib32


Ignore:
Timestamp:
Dec 11, 2005, 5:57:39 PM (20 years ago)
Author:
vladest
Message:

Latest update from ALSA. some intial > 15 interrupts support

Location:
GPL/trunk/lib32
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/lib32/fminstrload.c

    r33 r34  
    178178 * Send patch to destination port
    179179 */
    180 static int load_patch (midihandle *pHandle, fm_instrument_t * fm_instr, int bank, int prg, char *name)
     180static int load_patch (midihandle *pHandle, struct fm_instrument * fm_instr, int bank, int prg, char *name)
    181181{
    182182    snd_seq_instr_header_t *put;
     
    231231
    232232    sbi_inst_t sbi_instr;
    233     fm_instrument_t fm_instr;
     233    struct fm_instrument fm_instr;
    234234    int fm_instr_type;
    235235
     
    311311{
    312312        snd_instr_header_t *put;
    313         fm_instrument_t *instr;
     313        struct fm_instrument *instr;
    314314        fm_xinstrument_t *xinstr;
    315315        int idx;
     
    317317        if (fm == NULL || __data == NULL)
    318318                return -EINVAL;
    319         instr = (fm_instrument_t *)fm;
     319        instr = (struct fm_instrument *)fm;
    320320        *__data = NULL;
    321321        *__size = 0;
     
    415415{
    416416        assert(info && id);
    417         info->id.instr = *(struct sndrv_seq_instr *)id;
     417        info->id.instr = *(struct snd_seq_instr *)id;
    418418}
    419419
  • GPL/trunk/lib32/irq.c

    r33 r34  
    4747//******************************************************************************
    4848int request_irq(unsigned int irq,
    49                 void (*handler)(int, void *, struct pt_regs *),
     49                int (near *handler)(int, void *, struct pt_regs *),
    5050                unsigned long x0, const char *x1, void *x2)
    5151{
     
    5454    if(RMRequestIRQ(hResMgr, irq, (x0 & SA_SHIRQ) ? TRUE : FALSE) == FALSE) {
    5555        dprintf(("RMRequestIRQ failed for irq %d", irq));
    56         return NULL;
     56        return 0;
    5757    }
    5858
     
    109109void eoi_irq(unsigned int irq)
    110110{
    111     if(irq > 0xf) {
     111    if(irq > 0xff) {
    112112        DebugInt3();
    113113        return;
     
    119119BOOL oss_process_interrupt(int irq)
    120120{
    121  BOOL rc;
     121 int rc;
    122122 int  i;
    123123
     
    142142        {
    143143            fInInterrupt = TRUE;
    144             irqHandlers[irq][i].handler(irq, irqHandlers[irq][i].x2, 0);
    145             rc = (eoiIrq[irq] > 0);
     144            rc = irqHandlers[irq][i].handler(irq, irqHandlers[irq][i].x2, 0);
     145            //rc = (eoiIrq[irq] > 0);
    146146            fInInterrupt = FALSE;
    147             if(rc) {
     147            if(rc == 1) {
    148148                //ok, this interrupt was intended for us; notify the 16 bits MMPM/2 driver
    149149                OSS32_ProcessIRQ();
  • GPL/trunk/lib32/ossidc.cpp

    r33 r34  
    100100};
    101101//******************************************************************************
    102 OSSRET OSS32_Initialize()
    103 {
     102OSSRET OSS32_Initialize(void)
     103{
     104    int i;
     105
    104106    fStrategyInit = TRUE;
    105     int i;
    106107
    107108    if(DevSetTimer(TimerHandler16) != 0) {
  • GPL/trunk/lib32/pci.c

    r33 r34  
    3232#include <asm/io.h>
    3333#include <sound/config.h>
     34#include <sound/driver.h>
    3435#include <sound/asound.h>
    3536
     
    526527                        //return 1;
    527528                    }
    528                     else pcidev->devfn = NULL;
     529                    else pcidev->devfn = 0;
    529530
    530531                    RMDestroy(hResMgr);
     
    765766        u32 config[16];
    766767};
    767 statuc struct saved_config_tbl saved_tbl[16];
     768static struct saved_config_tbl saved_tbl[16];
    768769
    769770void pci_save_state(struct pci_dev *pci)
  • GPL/trunk/lib32/sound.c

    r33 r34  
    11571157            buffer += ret;
    11581158            size   -= ret;
    1159             if(size <= 0) {
     1159            if((int)size <= 0) {
    11601160                break;
    11611161            }
     
    12571257    int          ret;
    12581258    int          leftvol, rightvol;
    1259     snd_pcm_volume_t pcm_volume;
     1259    struct snd_pcm_volume pcm_volume;
    12601260
    12611261    if(pHandle == NULL || pHandle->magic != MAGIC_WAVE_ALSA32) {
  • GPL/trunk/lib32/soundmidi.c

    r33 r34  
    4848    midihandle                      *pHandle;
    4949    int                              ret, i;
    50     struct sndrv_seq_port_subscribe  subs;
    51     struct sndrv_seq_client_info     clientinfo;
    52     struct sndrv_seq_port_info       portinfo;
     50    struct snd_seq_port_subscribe  subs;
     51    struct snd_seq_client_info     clientinfo;
     52    struct snd_seq_port_info       portinfo;
    5353
    5454    *pStreamId = 0;
     
    203203    //unsubscribe
    204204    if(pHandle->state & MIDISTATE_SUBSCRIBED) {
    205         struct sndrv_seq_port_subscribe  subs;
     205        struct snd_seq_port_subscribe  subs;
    206206
    207207        memset(&subs, 0, sizeof(subs));
     
    219219    //delete port
    220220    if(pHandle->state & MIDISTATE_SUBSCRIBED) {
    221         struct sndrv_seq_port_info       portinfo;
     221        struct snd_seq_port_info       portinfo;
    222222       
    223223        memset(&portinfo, 0, sizeof(portinfo));
     
    287287    int          ret;
    288288    LONG         transferred;
    289     struct sndrv_seq_event fmevent;
     289    struct snd_seq_event fmevent;
    290290
    291291    if(pHandle == NULL || pHandle->magic != MAGIC_MIDI_ALSA32) {
Note: See TracChangeset for help on using the changeset viewer.