Ignore:
Timestamp:
Jul 24, 2021, 3:42:01 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge in changes from uniaud32next branch.

Location:
GPL/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

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

    r679 r689  
    7878static void snd_gus_init_control(struct snd_gus_card *gus)
    7979{
    80         int ret;
    81 
    82         if (!gus->ace_flag) {
    83                 ret =
    84                         snd_ctl_add(gus->card,
    85                                         snd_ctl_new1(&snd_gus_joystick_control,
    86                                                 gus));
    87                 if (ret)
    88                         snd_printk(KERN_ERR "gus: snd_ctl_add failed: %d\n",
    89                                         ret);
    90         }
     80        if (!gus->ace_flag)
     81                snd_ctl_add(gus->card, snd_ctl_new1(&snd_gus_joystick_control, gus));
    9182}
    9283
  • GPL/trunk/alsa-kernel/isa/sb/emu8000.c

    r679 r689  
    10301030        memset(emu->controls, 0, sizeof(emu->controls));
    10311031        for (i = 0; i < EMU8000_NUM_CONTROLS; i++) {
    1032                 if ((err = snd_ctl_add(card, emu->controls[i] = snd_ctl_new1(mixer_defs[i], emu))) < 0)
     1032                if ((err = snd_ctl_add(card, emu->controls[i] = snd_ctl_new1(mixer_defs[i], emu))) < 0) {
     1033                        emu->controls[i] = NULL;
    10331034                        goto __error;
     1035                }
    10341036        }
    10351037        return 0;
  • GPL/trunk/alsa-kernel/isa/sb/sb16_csp.c

    r679 r689  
    10471047        spin_lock_init(&p->q_lock);
    10481048
    1049         if ((err = snd_ctl_add(card, p->qsound_switch = snd_ctl_new1(&snd_sb_qsound_switch, p))) < 0)
     1049        if ((err = snd_ctl_add(card, p->qsound_switch = snd_ctl_new1(&snd_sb_qsound_switch, p))) < 0) {
     1050                p->qsound_switch = NULL;
    10501051                goto __error;
    1051         if ((err = snd_ctl_add(card, p->qsound_space = snd_ctl_new1(&snd_sb_qsound_space, p))) < 0)
     1052        }
     1053        if ((err = snd_ctl_add(card, p->qsound_space = snd_ctl_new1(&snd_sb_qsound_space, p))) < 0) {
     1054                p->qsound_space = NULL;
    10521055                goto __error;
     1056        }
    10531057
    10541058        return 0;
  • GPL/trunk/alsa-kernel/isa/sb/sb16_main.c

    r679 r689  
    847847        snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb16_capture_ops);
    848848
    849         if (chip->dma16 >= 0 && chip->dma8 != chip->dma16) {
    850                 err = snd_ctl_add(card, snd_ctl_new1(
    851                                         &snd_sb16_dma_control, chip));
    852                 if (err)
    853                         return err;
    854         } else {
     849        if (chip->dma16 >= 0 && chip->dma8 != chip->dma16)
     850                snd_ctl_add(card, snd_ctl_new1(&snd_sb16_dma_control, chip));
     851        else
    855852                pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX;
    856         }
    857853
    858854        snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
  • GPL/trunk/alsa-kernel/isa/sb/sb8.c

    r679 r689  
    9797        /* block the 0x388 port to avoid PnP conflicts */
    9898        acard->fm_res = request_region(0x388, 4, "SoundBlaster FM");
    99         if (!acard->fm_res) {
    100                 err = -EBUSY;
    101                 goto _err;
    102         }
    10399
    104100        if (port[dev] != SNDRV_AUTO_PORT) {
Note: See TracChangeset for help on using the changeset viewer.