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:
34 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/isa/sb/sb_common.c

    r679 r703  
    239239                goto __skip_allocation;
    240240       
    241         if ((chip->res_port = request_region(port, 16, "SoundBlaster")) == NULL) {
     241        chip->res_port = request_region(port, 16, "SoundBlaster");
     242        if (!chip->res_port) {
    242243                snd_printk(KERN_ERR "sb: can't grab port 0x%lx\n", port);
    243244                snd_sbdsp_free(chip);
     
    268269        chip->card = card;
    269270        chip->hardware = hardware;
    270         if ((err = snd_sbdsp_probe(chip)) < 0) {
     271        err = snd_sbdsp_probe(chip);
     272        if (err < 0) {
    271273                snd_sbdsp_free(chip);
    272274                return err;
    273275        }
    274         if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops)) < 0) {
     276        err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
     277        if (err < 0) {
    275278                snd_sbdsp_free(chip);
    276279                return err;
  • GPL/trunk/alsa-kernel/isa/sb/sb_mixer.c

    r695 r703  
    486486        ctl->id.index = index;
    487487        ctl->private_value = value;
    488         if ((err = snd_ctl_add(chip->card, ctl)) < 0)
     488        err = snd_ctl_add(chip->card, ctl);
     489        if (err < 0)
    489490                return err;
    490491        return 0;
     
    737738        case SB_HW_20:
    738739        case SB_HW_201:
    739                 if ((err = snd_sbmixer_init(chip,
    740                                             snd_sb20_controls,
    741                                             ARRAY_SIZE(snd_sb20_controls),
    742                                             snd_sb20_init_values,
    743                                             ARRAY_SIZE(snd_sb20_init_values),
    744                                             "CTL1335")) < 0)
     740                err = snd_sbmixer_init(chip,
     741                                       snd_sb20_controls,
     742                                       ARRAY_SIZE(snd_sb20_controls),
     743                                       snd_sb20_init_values,
     744                                       ARRAY_SIZE(snd_sb20_init_values),
     745                                       "CTL1335");
     746                if (err < 0)
    745747                        return err;
    746748                break;
    747749        case SB_HW_PRO:
    748750        case SB_HW_JAZZ16:
    749                 if ((err = snd_sbmixer_init(chip,
    750                                             snd_sbpro_controls,
    751                                             ARRAY_SIZE(snd_sbpro_controls),
    752                                             snd_sbpro_init_values,
    753                                             ARRAY_SIZE(snd_sbpro_init_values),
    754                                             "CTL1345")) < 0)
     751                err = snd_sbmixer_init(chip,
     752                                       snd_sbpro_controls,
     753                                       ARRAY_SIZE(snd_sbpro_controls),
     754                                       snd_sbpro_init_values,
     755                                       ARRAY_SIZE(snd_sbpro_init_values),
     756                                       "CTL1345");
     757                if (err < 0)
    755758                        return err;
    756759                break;
     
    758761        case SB_HW_ALS100:
    759762        case SB_HW_CS5530:
    760                 if ((err = snd_sbmixer_init(chip,
    761                                             snd_sb16_controls,
    762                                             ARRAY_SIZE(snd_sb16_controls),
    763                                             snd_sb16_init_values,
    764                                             ARRAY_SIZE(snd_sb16_init_values),
    765                                             "CTL1745")) < 0)
     763                err = snd_sbmixer_init(chip,
     764                                       snd_sb16_controls,
     765                                       ARRAY_SIZE(snd_sb16_controls),
     766                                       snd_sb16_init_values,
     767                                       ARRAY_SIZE(snd_sb16_init_values),
     768                                       "CTL1745");
     769                if (err < 0)
    766770                        return err;
    767771                break;
     
    776780                if (err < 0)
    777781                        return err;
    778                 if ((err = snd_sbmixer_init(chip,
    779                                             snd_als4000_controls,
    780                                             ARRAY_SIZE(snd_als4000_controls),
    781                                             snd_als4000_init_values,
    782                                             ARRAY_SIZE(snd_als4000_init_values),
    783                                             "ALS4000")) < 0)
     782                err = snd_sbmixer_init(chip,
     783                                       snd_als4000_controls,
     784                                       ARRAY_SIZE(snd_als4000_controls),
     785                                       snd_als4000_init_values,
     786                                       ARRAY_SIZE(snd_als4000_init_values),
     787                                       "ALS4000");
     788                if (err < 0)
    784789                        return err;
    785790                break;
Note: See TracChangeset for help on using the changeset viewer.