Changeset 703 for GPL/trunk/alsa-kernel/pci/emu10k1/p16v.c
- Timestamp:
- Sep 26, 2021, 6:18:40 PM (4 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 696-702
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/pci/emu10k1/p16v.c
r679 r703 195 195 /* channel->interrupt = snd_p16v_pcm_channel_interrupt; */ 196 196 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) 198 199 return err; 199 200 … … 243 244 /* channel->interrupt = snd_p16v_pcm_channel_interrupt; */ 244 245 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) 246 248 return err; 247 249 … … 590 592 emu->p16v_device_offset = device; 591 593 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) 593 596 return err; 594 597 … … 809 812 810 813 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) 813 816 return err; 814 817 }
Note:
See TracChangeset
for help on using the changeset viewer.