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/cs46xx/cs46xx.c

    r695 r703  
    7878        if (err < 0)
    7979                return err;
    80         if ((err = snd_cs46xx_create(card, pci,
    81                                      external_amp[dev], thinkpad[dev],
    82                                      &chip)) < 0) {
     80        err = snd_cs46xx_create(card, pci,
     81                                external_amp[dev], thinkpad[dev],
     82                                &chip);
     83        if (err < 0) {
    8384                snd_card_free(card);
    8485                return err;
     
    8687        card->private_data = chip;
    8788        chip->accept_valid = mmap_valid[dev];
    88         if ((err = snd_cs46xx_pcm(chip, 0)) < 0) {
     89        err = snd_cs46xx_pcm(chip, 0);
     90        if (err < 0) {
    8991                snd_card_free(card);
    9092                return err;
    9193        }
    9294#ifdef CONFIG_SND_CS46XX_NEW_DSP
    93         if ((err = snd_cs46xx_pcm_rear(chip, 1)) < 0) {
     95        err = snd_cs46xx_pcm_rear(chip, 1);
     96        if (err < 0) {
    9497                snd_card_free(card);
    9598                return err;
    9699        }
    97         if ((err = snd_cs46xx_pcm_iec958(chip, 2)) < 0) {
     100        err = snd_cs46xx_pcm_iec958(chip, 2);
     101        if (err < 0) {
    98102                snd_card_free(card);
    99103                return err;
    100104        }
    101105#endif
    102         if ((err = snd_cs46xx_mixer(chip, 2)) < 0) {
     106        err = snd_cs46xx_mixer(chip, 2);
     107        if (err < 0) {
    103108                snd_card_free(card);
    104109                return err;
     
    106111#ifdef CONFIG_SND_CS46XX_NEW_DSP
    107112        if (chip->nr_ac97_codecs ==2) {
    108                 if ((err = snd_cs46xx_pcm_center_lfe(chip, 3)) < 0) {
     113                err = snd_cs46xx_pcm_center_lfe(chip, 3);
     114                if (err < 0) {
    109115                        snd_card_free(card);
    110116                        return err;
     
    112118        }
    113119#endif
    114         if ((err = snd_cs46xx_midi(chip, 0)) < 0) {
     120        err = snd_cs46xx_midi(chip, 0);
     121        if (err < 0) {
    115122                snd_card_free(card);
    116123                return err;
    117124        }
    118         if ((err = snd_cs46xx_start_dsp(chip)) < 0) {
     125        err = snd_cs46xx_start_dsp(chip);
     126        if (err < 0) {
    119127                snd_card_free(card);
    120128                return err;
     
    132140                chip->irq);
    133141
    134         if ((err = snd_card_register(card)) < 0) {
     142        err = snd_card_register(card);
     143        if (err < 0) {
    135144                snd_card_free(card);
    136145                return err;
Note: See TracChangeset for help on using the changeset viewer.