Ignore:
Timestamp:
May 9, 2009, 11:45:26 AM (16 years ago)
Author:
Paul Smedley
Message:

Update alsa-kernel to ALSA 1.0.20 level

Location:
GPL/trunk/alsa-kernel/drivers/opl3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/drivers/opl3/opl3_lib.c

    r399 r426  
    303303        status = inb(opl3->l_port);
    304304#if 0
    305         snd_printk("AdLib IRQ status = 0x%x\n", status);
     305        snd_printk(KERN_DEBUG "AdLib IRQ status = 0x%x\n", status);
    306306#endif
    307307        if (!(status & 0x80))
  • GPL/trunk/alsa-kernel/drivers/opl3/opl3_midi.c

    r399 r426  
    126126        char *str = "x.24";
    127127
    128         printk("time %.5i: %s [%.2i]: ", opl3->use_time, s, voice);
     128        printk(KERN_DEBUG "time %.5i: %s [%.2i]: ", opl3->use_time, s, voice);
    129129        for (i = 0; i < opl3->max_voices; i++)
    130130                printk("%c", *(str + opl3->voices[i].state + 1));
     
    219219                if (best[i].voice >= 0) {
    220220#ifdef DEBUG_ALLOC
    221                         printk("%s %iop allocation on voice %i\n",
     221                        printk(KERN_DEBUG "%s %iop allocation on voice %i\n",
    222222                               alloc_type[i], instr_4op ? 4 : 2,
    223223                               best[i].voice);
     
    318318
    319319#ifdef DEBUG_MIDI
    320         snd_printk("Note on, ch %i, inst %i, note %i, vel %i\n",
     320        snd_printk(KERN_DEBUG "Note on, ch %i, inst %i, note %i, vel %i\n",
    321321                   chan->number, chan->midi_program, note, vel);
    322322#endif
     
    373373        }
    374374#ifdef DEBUG_MIDI
    375         snd_printk("  --> OPL%i instrument: %s\n",
     375        snd_printk(KERN_DEBUG "  --> OPL%i instrument: %s\n",
    376376                   instr_4op ? 3 : 2, patch->name);
    377377#endif
     
    432432
    433433#ifdef DEBUG_MIDI
    434         snd_printk("  --> setting OPL3 connection: 0x%x\n",
     434        snd_printk(KERN_DEBUG "  --> setting OPL3 connection: 0x%x\n",
    435435                   opl3->connection_reg);
    436436#endif
     
    467467        for (i = 0; i < (instr_4op ? 4 : 2); i++) {
    468468#ifdef DEBUG_MIDI
    469                 snd_printk("  --> programming operator %i\n", i);
     469                snd_printk(KERN_DEBUG "  --> programming operator %i\n", i);
    470470#endif
    471471                op_offset = snd_opl3_regmap[voice_offset][i];
     
    547547
    548548#ifdef DEBUG_MIDI
    549         snd_printk("  --> trigger voice %i\n", voice);
     549        snd_printk(KERN_DEBUG "  --> trigger voice %i\n", voice);
    550550#endif
    551551        /* Set OPL3 KEYON_BLOCK register of requested voice */
     
    603603                }
    604604#ifdef DEBUG_MIDI
    605                 snd_printk(" *** allocating extra program\n");
     605                snd_printk(KERN_DEBUG " *** allocating extra program\n");
    606606#endif
    607607                goto __extra_prg;
     
    634634        /* kill voice */
    635635#ifdef DEBUG_MIDI
    636         snd_printk("  --> kill voice %i\n", voice);
     636        snd_printk(KERN_DEBUG "  --> kill voice %i\n", voice);
    637637#endif
    638638        opl3_reg = reg_side | (OPL3_REG_KEYON_BLOCK + voice_offset);
     
    671671
    672672#ifdef DEBUG_MIDI
    673         snd_printk("Note off, ch %i, inst %i, note %i\n",
     673        snd_printk(KERN_DEBUG "Note off, ch %i, inst %i, note %i\n",
    674674                   chan->number, chan->midi_program, note);
    675675#endif
     
    710710        opl3 = p;
    711711#ifdef DEBUG_MIDI
    712         snd_printk("Key pressure, ch#: %i, inst#: %i\n",
     712        snd_printk(KERN_DEBUG "Key pressure, ch#: %i, inst#: %i\n",
    713713                   chan->number, chan->midi_program);
    714714#endif
     
    724724        opl3 = p;
    725725#ifdef DEBUG_MIDI
    726         snd_printk("Terminate note, ch#: %i, inst#: %i\n",
     726        snd_printk(KERN_DEBUG "Terminate note, ch#: %i, inst#: %i\n",
    727727                   chan->number, chan->midi_program);
    728728#endif
     
    813813        opl3 = p;
    814814#ifdef DEBUG_MIDI
    815         snd_printk("Controller, TYPE = %i, ch#: %i, inst#: %i\n",
     815        snd_printk(KERN_DEBUG "Controller, TYPE = %i, ch#: %i, inst#: %i\n",
    816816                   type, chan->number, chan->midi_program);
    817817#endif
     
    850850        opl3 = p;
    851851#ifdef DEBUG_MIDI
    852         snd_printk("NRPN, ch#: %i, inst#: %i\n",
     852        snd_printk(KERN_DEBUG "NRPN, ch#: %i, inst#: %i\n",
    853853                   chan->number, chan->midi_program);
    854854#endif
     
    865865        opl3 = p;
    866866#ifdef DEBUG_MIDI
    867         snd_printk("SYSEX\n");
    868 #endif
    869 }
     867        snd_printk(KERN_DEBUG "SYSEX\n");
     868#endif
     869}
  • GPL/trunk/alsa-kernel/drivers/opl3/opl3_synth.c

    r399 r426  
    169169#ifdef CONFIG_SND_DEBUG
    170170        default:
    171                 snd_printk("unknown IOCTL: 0x%x\n", cmd);
     171                snd_printk(KERN_WARNING "unknown IOCTL: 0x%x\n", cmd);
    172172#endif
    173173        }
Note: See TracChangeset for help on using the changeset viewer.