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

    r695 r703  
    8383        ICH_REG_##name##_PIV    = base + 0x0a,  /* byte - prefetched index value */ \
    8484        ICH_REG_##name##_CR     = base + 0x0b,  /* byte - control register */ \
    85 };
     85}
    8686
    8787/* busmaster blocks */
     
    542542        } else {
    543543                res = iagetword(chip, reg + ac97->num * 0x80);
    544                 if ((tmp = igetdword(chip, ICHREG(GLOB_STA))) & ICH_RCS) {
     544                tmp = igetdword(chip, ICHREG(GLOB_STA));
     545                if (tmp & ICH_RCS) {
    545546                        /* reset RCS and preserve other R/WC bits */
    546547                        iputdword(chip, ICHREG(GLOB_STA), tmp &
     
    563564        if (snd_intel8x0_codec_semaphore(chip, codec) >= 0) {
    564565                iagetword(chip, codec * 0x80);
    565                 if ((tmp = igetdword(chip, ICHREG(GLOB_STA))) & ICH_RCS) {
     566                tmp = igetdword(chip, ICHREG(GLOB_STA));
     567                if (tmp & ICH_RCS) {
    566568                        /* reset RCS and preserve other R/WC bits */
    567569                        iputdword(chip, ICHREG(GLOB_STA), tmp &
     
    11091111                runtime->hw.period_bytes_max = 64*1024;
    11101112        }
    1111         if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
     1113        err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
     1114        if (err < 0)
    11121115                return err;
    11131116        runtime->private_data = ichdev;
     
    21942197                }
    21952198        }
    2196         if ((err = snd_ac97_bus(chip->card, 0, ops, chip, &pbus)) < 0)
     2199        err = snd_ac97_bus(chip->card, 0, ops, chip, &pbus);
     2200        if (err < 0)
    21972201                goto __err;
    21982202        pbus->private_free = snd_intel8x0_mixer_free_ac97_bus;
     
    22102214        for (i = 0; i < codecs; i++) {
    22112215                ac97.num = i;
    2212                 if ((err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i])) < 0) {
     2216                err = snd_ac97_mixer(pbus, &ac97, &chip->ac97[i]);
     2217                if (err < 0) {
    22132218                        if (err != -EACCES)
    22142219                                dev_err(chip->card->dev,
     
    24972502       
    24982503        if (chip->device_type != DEVICE_ALI) {
    2499                 if ((err = snd_intel8x0_ich_chip_init(chip, probing)) < 0)
     2504                err = snd_intel8x0_ich_chip_init(chip, probing);
     2505                if (err < 0)
    25002506                        return err;
    25012507                iagetword(chip, 0);     /* clear semaphore flag */
    25022508        } else {
    2503                 if ((err = snd_intel8x0_ali_chip_init(chip, probing)) < 0)
     2509                err = snd_intel8x0_ali_chip_init(chip, probing);
     2510                if (err < 0)
    25042511                        return err;
    25052512        }
     
    29432950        *r_intel8x0 = NULL;
    29442951
    2945         if ((err = pci_enable_device(pci)) < 0)
     2952        err = pci_enable_device(pci);
     2953        if (err < 0)
    29462954                return err;
    29472955
     
    29752983                chip->fix_nocache = 1; /* enable workaround */
    29762984
    2977         if ((err = pci_request_regions(pci, card->shortname)) < 0) {
     2985        err = pci_request_regions(pci, card->shortname);
     2986        if (err < 0) {
    29782987                kfree(chip);
    29792988                pci_disable_device(pci);
     
    30893098                chip->codec_isr_bits |= chip->codec_bit[i];
    30903099
    3091         if ((err = snd_intel8x0_chip_init(chip, 1)) < 0) {
     3100        err = snd_intel8x0_chip_init(chip, 1);
     3101        if (err < 0) {
    30923102                snd_intel8x0_free(chip);
    30933103                return err;
     
    31043114        card->sync_irq = chip->irq;
    31053115
    3106         if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
     3116        err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
     3117        if (err < 0) {
    31073118                snd_intel8x0_free(chip);
    31083119                return err;
     
    32113222        }
    32123223
    3213         if ((err = snd_intel8x0_create(card, pci, pci_id->driver_data,
    3214                                        &chip)) < 0) {
     3224        err = snd_intel8x0_create(card, pci, pci_id->driver_data, &chip);
     3225        if (err < 0) {
    32153226                snd_card_free(card);
    32163227                return err;
     
    32183229        card->private_data = chip;
    32193230
    3220         if ((err = snd_intel8x0_mixer(chip, ac97_clock, ac97_quirk)) < 0) {
     3231        err = snd_intel8x0_mixer(chip, ac97_clock, ac97_quirk);
     3232        if (err < 0) {
    32213233                snd_card_free(card);
    32223234                return err;
    32233235        }
    3224         if ((err = snd_intel8x0_pcm(chip)) < 0) {
     3236        err = snd_intel8x0_pcm(chip);
     3237        if (err < 0) {
    32253238                snd_card_free(card);
    32263239                return err;
     
    32423255        }
    32433256
    3244         if ((err = snd_card_register(card)) < 0) {
     3257        err = snd_card_register(card);
     3258        if (err < 0) {
    32453259                snd_card_free(card);
    32463260                return err;
Note: See TracChangeset for help on using the changeset viewer.