Ignore:
Timestamp:
Sep 26, 2021, 6:18:40 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge changes from next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/ens1370.c

    r695 r703  
    676676                        /* now wait for the stinkin' data (RDY) */
    677677                        for (t = 0; t < POLL_COUNT; t++) {
    678                                 if ((x = inl(ES_REG(ensoniq, 1371_CODEC))) & ES_1371_CODEC_RDY) {
     678                                x = inl(ES_REG(ensoniq, 1371_CODEC));
     679                                if (x & ES_1371_CODEC_RDY) {
    679680                                        if (is_ev1938(ensoniq)) {
    680681                                                for (t = 0; t < 100; t++)
     
    15981599        };
    15991600
    1600         if ((err = snd_ac97_bus(card, 0, &ops, NULL, &pbus)) < 0)
     1601        err = snd_ac97_bus(card, 0, &ops, NULL, &pbus);
     1602        if (err < 0)
    16011603                return err;
    16021604
     
    16061608        ac97.pci = ensoniq->pci;
    16071609        ac97.scaps = AC97_SCAP_AUDIO;
    1608         if ((err = snd_ac97_mixer(pbus, &ac97, &ensoniq->u.es1371.ac97)) < 0)
     1610        err = snd_ac97_mixer(pbus, &ac97, &ensoniq->u.es1371.ac97);
     1611        if (err < 0)
    16091612                return err;
    16101613        if (has_spdif > 0 ||
     
    17261729        ak4531.private_data = ensoniq;
    17271730        ak4531.private_free = snd_ensoniq_mixer_free_ak4531;
    1728         if ((err = snd_ak4531_mixer(card, &ak4531, &ensoniq->u.es1370.ak4531)) < 0)
     1731        err = snd_ak4531_mixer(card, &ak4531, &ensoniq->u.es1370.ak4531);
     1732        if (err < 0)
    17291733                return err;
    17301734        for (idx = 0; idx < ES1370_CONTROLS; idx++) {
     
    20422046
    20432047        *rensoniq = NULL;
    2044         if ((err = pci_enable_device(pci)) < 0)
     2048        err = pci_enable_device(pci);
     2049        if (err < 0)
    20452050                return err;
    20462051        ensoniq = kzalloc(sizeof(*ensoniq), GFP_KERNEL);
     
    20542059        ensoniq->pci = pci;
    20552060        ensoniq->irq = -1;
    2056         if ((err = pci_request_regions(pci, "Ensoniq AudioPCI")) < 0) {
     2061        err = pci_request_regions(pci, "Ensoniq AudioPCI");
     2062        if (err < 0) {
    20572063                kfree(ensoniq);
    20582064                pci_disable_device(pci);
     
    21032109        snd_ensoniq_chip_init(ensoniq);
    21042110
    2105         if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ensoniq, &ops)) < 0) {
     2111        err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, ensoniq, &ops);
     2112        if (err < 0) {
    21062113                snd_ensoniq_free(ensoniq);
    21072114                return err;
     
    22942301        int err;
    22952302
    2296         if ((err = snd_rawmidi_new(ensoniq->card, "ES1370/1", device, 1, 1, &rmidi)) < 0)
     2303        err = snd_rawmidi_new(ensoniq->card, "ES1370/1", device, 1, 1, &rmidi);
     2304        if (err < 0)
    22972305                return err;
    22982306        strcpy(rmidi->name, CHIP_NAME);
     
    23652373                return err;
    23662374
    2367         if ((err = snd_ensoniq_create(card, pci, &ensoniq)) < 0) {
     2375        err = snd_ensoniq_create(card, pci, &ensoniq);
     2376        if (err < 0) {
    23682377                snd_card_free(card);
    23692378                return err;
     
    23722381
    23732382#ifdef CHIP1370
    2374         if ((err = snd_ensoniq_1370_mixer(ensoniq)) < 0) {
     2383        err = snd_ensoniq_1370_mixer(ensoniq);
     2384        if (err < 0) {
    23752385                snd_card_free(card);
    23762386                return err;
     
    23782388#endif
    23792389#ifdef CHIP1371
    2380         if ((err = snd_ensoniq_1371_mixer(ensoniq, spdif[dev], lineio[dev])) < 0) {
     2390        err = snd_ensoniq_1371_mixer(ensoniq, spdif[dev], lineio[dev]);
     2391        if (err < 0) {
    23812392                snd_card_free(card);
    23822393                return err;
    23832394        }
    23842395#endif
    2385         if ((err = snd_ensoniq_pcm(ensoniq, 0)) < 0) {
     2396        err = snd_ensoniq_pcm(ensoniq, 0);
     2397        if (err < 0) {
    23862398                snd_card_free(card);
    23872399                return err;
    23882400        }
    2389         if ((err = snd_ensoniq_pcm2(ensoniq, 1)) < 0) {
     2401        err = snd_ensoniq_pcm2(ensoniq, 1);
     2402        if (err < 0) {
    23902403                snd_card_free(card);
    23912404                return err;
    23922405        }
    2393         if ((err = snd_ensoniq_midi(ensoniq, 0)) < 0) {
     2406        err = snd_ensoniq_midi(ensoniq, 0);
     2407        if (err < 0) {
    23942408                snd_card_free(card);
    23952409                return err;
     
    24072421                ensoniq->irq);
    24082422
    2409         if ((err = snd_card_register(card)) < 0) {
     2423        err = snd_card_register(card);
     2424        if (err < 0) {
    24102425                snd_card_free(card);
    24112426                return err;
Note: See TracChangeset for help on using the changeset viewer.