Merge branch 'fix/misc' into topic/misc
Conflicts: sound/pci/hda/patch_realtek.c
This commit is contained in:
@ -316,10 +316,10 @@ int snd_pcm_hw_refine(struct snd_pcm_substream *substream,
|
||||
if (!params->info)
|
||||
params->info = hw->info & ~SNDRV_PCM_INFO_FIFO_IN_FRAMES;
|
||||
if (!params->fifo_size) {
|
||||
if (snd_mask_min(¶ms->masks[SNDRV_PCM_HW_PARAM_FORMAT]) ==
|
||||
snd_mask_max(¶ms->masks[SNDRV_PCM_HW_PARAM_FORMAT]) &&
|
||||
snd_mask_min(¶ms->masks[SNDRV_PCM_HW_PARAM_CHANNELS]) ==
|
||||
snd_mask_max(¶ms->masks[SNDRV_PCM_HW_PARAM_CHANNELS])) {
|
||||
m = hw_param_mask(params, SNDRV_PCM_HW_PARAM_FORMAT);
|
||||
i = hw_param_interval(params, SNDRV_PCM_HW_PARAM_CHANNELS);
|
||||
if (snd_mask_min(m) == snd_mask_max(m) &&
|
||||
snd_interval_min(i) == snd_interval_max(i)) {
|
||||
changed = substream->ops->ioctl(substream,
|
||||
SNDRV_PCM_IOCTL1_FIFO_SIZE, params);
|
||||
if (changed < 0)
|
||||
|
@ -468,5 +468,5 @@ static void __exit alsa_sound_exit(void)
|
||||
unregister_chrdev(major, "alsa");
|
||||
}
|
||||
|
||||
module_init(alsa_sound_init)
|
||||
module_exit(alsa_sound_exit)
|
||||
subsys_initcall(alsa_sound_init);
|
||||
module_exit(alsa_sound_exit);
|
||||
|
@ -93,7 +93,7 @@ static int snd_oss_kernel_minor(int type, struct snd_card *card, int dev)
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
if (snd_BUG_ON(minor < 0 || minor >= SNDRV_OSS_MINORS))
|
||||
if (minor < 0 || minor >= SNDRV_OSS_MINORS)
|
||||
return -EINVAL;
|
||||
return minor;
|
||||
}
|
||||
|
Reference in New Issue
Block a user