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

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/ca0106/ca0106_main.c

    r695 r703  
    580580        //channel->interrupt = snd_ca0106_pcm_channel_interrupt;
    581581        channel->epcm = epcm;
    582         if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
     582        err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
     583        if (err < 0)
    583584                return err;
    584         if ((err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64)) < 0)
     585        err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64);
     586        if (err < 0)
    585587                return err;
    586588        snd_pcm_set_sync(substream);
     
    673675        //channel->interrupt = snd_ca0106_pcm_channel_interrupt;
    674676        channel->epcm = epcm;
    675         if ((err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS)) < 0)
     677        err = snd_pcm_hw_constraint_integer(runtime, SNDRV_PCM_HW_PARAM_PERIODS);
     678        if (err < 0)
    676679                return err;
    677680        //snd_pcm_hw_constraint_list(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, &hw_constraints_capture_period_sizes);
    678         if ((err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64)) < 0)
     681        err = snd_pcm_hw_constraint_step(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 64);
     682        if (err < 0)
    679683                return err;
    680684        return 0;
     
    11711175        };
    11721176 
    1173         if ((err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus)) < 0)
     1177        err = snd_ac97_bus(chip->card, 0, &ops, NULL, &pbus);
     1178        if (err < 0)
    11741179                return err;
    11751180        pbus->no_vra = 1; /* we don't need VRA */
     
    17641769        midi->dev_id = chip;
    17651770       
    1766         if ((err = ca_midi_init(chip, midi, 0, name)) < 0)
     1771        err = ca_midi_init(chip, midi, 0, name);
     1772        if (err < 0)
    17671773                return err;
    17681774
  • GPL/trunk/alsa-kernel/pci/ca0106/ca_midi.c

    r679 r703  
    277277        int err;
    278278
    279         if ((err = snd_rawmidi_new(midi->get_dev_id_card(midi->dev_id), name, device, 1, 1, &rmidi)) < 0)
     279        err = snd_rawmidi_new(midi->get_dev_id_card(midi->dev_id), name, device, 1, 1, &rmidi);
     280        if (err < 0)
    280281                return err;
    281282
Note: See TracChangeset for help on using the changeset viewer.