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

Update alsa-kernel to ALSA 1.0.20 level

Location:
GPL/trunk/alsa-kernel/isa/gus
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/alsa-kernel/isa/gus/gus_dma.c

    r305 r426  
    4646        unsigned int address_high;
    4747
    48         // snd_printk("dma_transfer: addr=0x%x, buf=0x%lx, count=0x%x\n", addr, (long) buf, count);
     48        snd_printdd("dma_transfer: addr=0x%x, buf=0x%lx, count=0x%x\n",
     49                    addr, buf_addr, count);
    4950
    5051        if (gus->gf1.dma1 > 3) {
     
    7879        snd_dma_program(gus->gf1.dma1, buf_addr, count, dma_cmd & SNDRV_GF1_DMA_READ ? DMA_MODE_READ : DMA_MODE_WRITE);
    7980#if 0
    80         snd_printk("address = 0x%x, count = 0x%x, dma_cmd = 0x%x\n", address << 1, count, dma_cmd);
     81        snd_printk(KERN_DEBUG "address = 0x%x, count = 0x%x, dma_cmd = 0x%x\n",
     82                   address << 1, count, dma_cmd);
    8183#endif
    8284        spin_lock_irqsave(&gus->reg_lock, flags);
     
    143145        kfree(block);
    144146#if 0
    145         printk("program dma (IRQ) - addr = 0x%x, buffer = 0x%lx, count = 0x%x, cmd = 0x%x\n", addr, (long) buffer, count, cmd);
     147        snd_printd(KERN_DEBUG "program dma (IRQ) - "
     148                   "addr = 0x%x, buffer = 0x%lx, count = 0x%x, cmd = 0x%x\n",
     149                   block->addr, block->buf_addr, block->count, block->cmd);
    146150#endif
    147151}
     
    204208        *block = *__block;
    205209        block->next = NULL;
    206 #if 0
    207         printk("addr = 0x%x, buffer = 0x%lx, count = 0x%x, cmd = 0x%x\n", block->addr, (long) block->buffer, block->count, block->cmd);
    208 #endif
    209 #if 0
    210         printk("gus->gf1.dma_data_pcm_last = 0x%lx\n", (long)gus->gf1.dma_data_pcm_last);
    211         printk("gus->gf1.dma_data_pcm = 0x%lx\n", (long)gus->gf1.dma_data_pcm);
    212 #endif
     210
     211        snd_printdd("addr = 0x%x, buffer = 0x%lx, count = 0x%x, cmd = 0x%x\n",
     212                    block->addr, (long) block->buffer, block->count,
     213                    block->cmd);
     214
     215        snd_printdd("gus->gf1.dma_data_pcm_last = 0x%lx\n",
     216                    (long)gus->gf1.dma_data_pcm_last);
     217        snd_printdd("gus->gf1.dma_data_pcm = 0x%lx\n",
     218                    (long)gus->gf1.dma_data_pcm);
     219
    213220        spin_lock_irqsave(&gus->dma_lock, flags);
    214221        if (synth) {
  • GPL/trunk/alsa-kernel/isa/gus/gus_irq.c

    r305 r426  
    4242                return IRQ_RETVAL(handled);
    4343        handled = 1;
    44         // snd_printk("IRQ: status = 0x%x\n", status);
     44        /* snd_printk(KERN_DEBUG "IRQ: status = 0x%x\n", status); */
    4545        if (status & 0x02) {
    4646                STAT_ADD(gus->gf1.interrupt_stat_midi_in);
     
    6666                        already |= _current_;   /* mark request */
    6767#if 0
    68                         printk("voice = %i, voice_status = 0x%x, voice_verify = %i\n", voice, voice_status, inb(GUSP(gus, GF1PAGE)));
     68                        printk(KERN_DEBUG "voice = %i, voice_status = 0x%x, "
     69                               "voice_verify = %i\n",
     70                               voice, voice_status, inb(GUSP(gus, GF1PAGE)));
    6971#endif
    7072                        pvoice = &gus->gf1.voices[voice];
  • GPL/trunk/alsa-kernel/isa/gus/gus_pcm.c

    r399 r426  
    8383        count += offset & 31;
    8484        offset &= ~31;
    85         // snd_printk("block change - offset = 0x%x, count = 0x%x\n", offset, count);
     85        /*
     86        snd_printk(KERN_DEBUG "block change - offset = 0x%x, count = 0x%x\n",
     87                   offset, count);
     88        */
    8689        memset(&block, 0, sizeof(block));
    8790        block.cmd = SNDRV_GF1_DMA_IRQ;
     
    136139                end = curr + (pcmp->block_size / runtime->channels);
    137140                end -= snd_pcm_format_width(runtime->format) == 16 ? 2 : 1;
    138                 // snd_printk("init: curr=0x%x, begin=0x%x, end=0x%x, ctrl=0x%x, ramp=0x%x, rate=0x%x\n", curr, begin, end, voice_ctrl, ramp_ctrl, rate);
     141                /*
     142                snd_printk(KERN_DEBUG "init: curr=0x%x, begin=0x%x, end=0x%x, "
     143                           "ctrl=0x%x, ramp=0x%x, rate=0x%x\n",
     144                           curr, begin, end, voice_ctrl, ramp_ctrl, rate);
     145                */
    139146                pan = runtime->channels == 2 ? (!voice ? 1 : 14) : 8;
    140147                vol = !voice ? gus->gf1.pcm_volume_level_left : gus->gf1.pcm_volume_level_right;
     
    206213#if 0
    207214        snd_gf1_select_voice(gus, pvoice->number);
    208         printk("position = 0x%x\n", (snd_gf1_read_addr(gus, SNDRV_GF1_VA_CURRENT, voice_ctrl & 4) >> 4));
     215        printk(KERN_DEBUG "position = 0x%x\n",
     216               (snd_gf1_read_addr(gus, SNDRV_GF1_VA_CURRENT, voice_ctrl & 4) >> 4));
    209217        snd_gf1_select_voice(gus, pcmp->pvoices[1]->number);
    210         printk("position = 0x%x\n", (snd_gf1_read_addr(gus, SNDRV_GF1_VA_CURRENT, voice_ctrl & 4) >> 4));
     218        printk(KERN_DEBUG "position = 0x%x\n",
     219               (snd_gf1_read_addr(gus, SNDRV_GF1_VA_CURRENT, voice_ctrl & 4) >> 4));
    211220        snd_gf1_select_voice(gus, pvoice->number);
    212221#endif
     
    300309        unsigned long flags;
    301310
    302         // printk("poke block; buf = 0x%x, pos = %i, count = %i, port = 0x%x\n", (int)buf, pos, count, gus->gf1.port);
     311        /*
     312        printk(KERN_DEBUG
     313               "poke block; buf = 0x%x, pos = %i, count = %i, port = 0x%x\n",
     314               (int)buf, pos, count, gus->gf1.port);
     315        */
    303316        while (count > 0) {
    304317                len = count;
     
    681694
    682695#if 0
    683         printk("playback.buffer = 0x%lx, gf1.pcm_buffer = 0x%lx\n", (long) pcm->playback.buffer, (long) gus->gf1.pcm_buffer);
     696        printk(KERN_DEBUG "playback.buffer = 0x%lx, gf1.pcm_buffer = 0x%lx\n",
     697               (long) pcm->playback.buffer, (long) gus->gf1.pcm_buffer);
    684698#endif
    685699        if ((err = snd_gf1_dma_init(gus)) < 0)
  • GPL/trunk/alsa-kernel/isa/gus/gus_uart.c

    r305 r426  
    130130        spin_unlock_irqrestore(&gus->uart_cmd_lock, flags);
    131131#if 0
    132         snd_printk("read init - enable = %i, cmd = 0x%x, stat = 0x%x\n", gus->uart_enable, gus->gf1.uart_cmd, snd_gf1_uart_stat(gus));
    133         snd_printk("[0x%x] reg (ctrl/status) = 0x%x, reg (data) = 0x%x (page = 0x%x)\n", gus->gf1.port + 0x100, inb(gus->gf1.port + 0x100), inb(gus->gf1.port + 0x101), inb(gus->gf1.port + 0x102));
     132        snd_printk(KERN_DEBUG
     133                   "read init - enable = %i, cmd = 0x%x, stat = 0x%x\n",
     134                   gus->uart_enable, gus->gf1.uart_cmd, snd_gf1_uart_stat(gus));
     135        snd_printk(KERN_DEBUG
     136                   "[0x%x] reg (ctrl/status) = 0x%x, reg (data) = 0x%x "
     137                   "(page = 0x%x)\n",
     138                   gus->gf1.port + 0x100, inb(gus->gf1.port + 0x100),
     139                   inb(gus->gf1.port + 0x101), inb(gus->gf1.port + 0x102));
    134140#endif
    135141        return 0;
  • GPL/trunk/alsa-kernel/isa/gus/interwave.c

    r410 r426  
    171171
    172172#if 0
    173         printk("i2c_setlines - 0x%lx <- %i,%i\n", port, ctrl, data);
     173        printk(KERN_DEBUG "i2c_setlines - 0x%lx <- %i,%i\n", port, ctrl, data);
    174174#endif
    175175        outb((data << 1) | ctrl, port);
     
    184184        res = inb(port) & 1;
    185185#if 0
    186         printk("i2c_getclockline - 0x%lx -> %i\n", port, res);
     186        printk(KERN_DEBUG "i2c_getclockline - 0x%lx -> %i\n", port, res);
    187187#endif
    188188        return res;
     
    198198        res = (inb(port) & 2) >> 1;
    199199#if 0
    200         printk("i2c_getdataline - 0x%lx -> %i\n", port, res);
     200        printk(KERN_DEBUG "i2c_getdataline - 0x%lx -> %i\n", port, res);
    201201#endif
    202202        return res;
     
    343343                        snd_gf1_poke(gus, local + 1, d + 1);
    344344#if 0
    345                         printk("d = 0x%x, local = 0x%x, local + 1 = 0x%x, idx << 22 = 0x%x\n",
     345                        printk(KERN_DEBUG "d = 0x%x, local = 0x%x, "
     346                               "local + 1 = 0x%x, idx << 22 = 0x%x\n",
    346347                               d,
    347348                               snd_gf1_peek(gus, local),
     
    357358        }
    358359#if 0
    359         printk("sizes: %i %i %i %i\n", sizes[0], sizes[1], sizes[2], sizes[3]);
     360        printk(KERN_DEBUG "sizes: %i %i %i %i\n",
     361               sizes[0], sizes[1], sizes[2], sizes[3]);
    360362#endif
    361363}
     
    411413                    (psizes[1] << 8) | psizes[0];
    412414#if 0
    413                 printk("lmct = 0x%08x\n", lmct);
     415                printk(KERN_DEBUG "lmct = 0x%08x\n", lmct);
    414416#endif
    415417                for (i = 0; i < ARRAY_SIZE(lmc); i++)
    416418                        if (lmct == lmc[i]) {
    417419#if 0
    418                                 printk("found !!! %i\n", i);
     420                                printk(KERN_DEBUG "found !!! %i\n", i);
    419421#endif
    420422                                snd_gf1_write16(gus, SNDRV_GF1_GW_MEMORY_CONFIG, (snd_gf1_look16(gus, SNDRV_GF1_GW_MEMORY_CONFIG) & 0xfff0) | i);
Note: See TracChangeset for help on using the changeset viewer.