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/emu10k1/p16v.c

    r679 r703  
    195195        /* channel->interrupt = snd_p16v_pcm_channel_interrupt; */
    196196        channel->epcm = epcm;
    197         if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
     197        err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
     198        if (err < 0)
    198199                return err;
    199200
     
    243244        /* channel->interrupt = snd_p16v_pcm_channel_interrupt; */
    244245        channel->epcm = epcm;
    245         if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
     246        err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
     247        if (err < 0)
    246248                return err;
    247249
     
    590592        emu->p16v_device_offset = device;
    591593
    592         if ((err = snd_pcm_new(emu->card, "p16v", device, 1, capture, &pcm)) < 0)
     594        err = snd_pcm_new(emu->card, "p16v", device, 1, capture, &pcm);
     595        if (err < 0)
    593596                return err;
    594597 
     
    809812
    810813        for (i = 0; i < ARRAY_SIZE(p16v_mixer_controls); i++) {
    811                 if ((err = snd_ctl_add(card, snd_ctl_new1(&p16v_mixer_controls[i],
    812                                                           emu))) < 0)
     814                err = snd_ctl_add(card, snd_ctl_new1(&p16v_mixer_controls[i], emu));
     815                if (err < 0)
    813816                        return err;
    814817        }
Note: See TracChangeset for help on using the changeset viewer.