Ignore:
Timestamp:
Apr 3, 2017, 4:51:56 PM (8 years ago)
Author:
David Azarewicz
Message:

Merged/reintegrated v2 branch into trunk. Trunk is now v2

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/isa/gus/gusextreme.c

    r464 r598  
    9696
    9797static int __devinit snd_gusextreme_es1688_create(struct snd_card *card,
    98                 struct device *dev, unsigned int n, struct snd_es1688 **rchip)
     98                struct snd_es1688 *chip, struct device *dev, unsigned int n)
    9999{
    100100        static long possible_ports[] = {0x220, 0x240, 0x260};
     
    120120
    121121        if (port[n] != SNDRV_AUTO_PORT)
    122                 return snd_es1688_create(card, port[n], mpu_port[n], irq[n],
    123                                 mpu_irq[n], dma8[n], ES1688_HW_1688, rchip);
     122                return snd_es1688_create(card, chip, port[n], mpu_port[n],
     123                                irq[n], mpu_irq[n], dma8[n], ES1688_HW_1688);
    124124
    125125        i = 0;
    126126        do {
    127127                port[n] = possible_ports[i];
    128                 error = snd_es1688_create(card, port[n], mpu_port[n], irq[n],
    129                                 mpu_irq[n], dma8[n], ES1688_HW_1688, rchip);
     128                error = snd_es1688_create(card, chip, port[n], mpu_port[n],
     129                                irq[n], mpu_irq[n], dma8[n], ES1688_HW_1688);
    130130        } while (error < 0 && ++i < ARRAY_SIZE(possible_ports));
    131131
     
    207207}
    208208
    209 static int __devinit snd_gusextreme_mixer(struct snd_es1688 *chip)
    210 {
    211         struct snd_card *card = chip->card;
     209static int __devinit snd_gusextreme_mixer(struct snd_card *card)
     210{
    212211        struct snd_ctl_elem_id id1, id2;
    213212        int error;
     
    242241        int error;
    243242
    244         error = snd_card_create(index[n], id[n], THIS_MODULE, 0, &card);
     243        error = snd_card_create(index[n], id[n], THIS_MODULE,
     244                                sizeof(struct snd_es1688), &card);
    245245        if (error < 0)
    246246                return error;
     247
     248        es1688 = card->private_data;
    247249
    248250        if (mpu_port[n] == SNDRV_AUTO_PORT)
     
    252254                mpu_irq[n] = -1;
    253255
    254         error = snd_gusextreme_es1688_create(card, dev, n, &es1688);
     256        error = snd_gusextreme_es1688_create(card, es1688, dev, n);
    255257        if (error < 0)
    256258                goto out;
     
    281283        gus->codec_flag = 1;
    282284
    283         error = snd_es1688_pcm(es1688, 0, NULL);
    284         if (error < 0)
    285                 goto out;
    286 
    287         error = snd_es1688_mixer(es1688);
     285        error = snd_es1688_pcm(card, es1688, 0, NULL);
     286        if (error < 0)
     287                goto out;
     288
     289        error = snd_es1688_mixer(card, es1688);
    288290        if (error < 0)
    289291                goto out;
     
    301303                goto out;
    302304
    303         error = snd_gusextreme_mixer(es1688);
     305        error = snd_gusextreme_mixer(card);
    304306        if (error < 0)
    305307                goto out;
Note: See TracChangeset for help on using the changeset viewer.