]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Fix interval evaluation with openmin/max
authorTakashi Iwai <tiwai@suse.de>
Thu, 29 Nov 2018 11:05:19 +0000 (12:05 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 29 Nov 2018 11:05:19 +0000 (12:05 +0100)
commitdbfc79e726c8d24a8de90bb27549019e837d250c
tree87caff7bfcaf3fadae2c936fa7b2217726c3aafe
parent5e9f49ce3611b9113ace6a0b32c0c686941c838c
ALSA: pcm: Fix interval evaluation with openmin/max

As addressed in alsa-lib (commit b420056604f0), we need to fix the
case where the evaluation of PCM interval "(x x+1]" leading to
-EINVAL.  After applying rules, such an interval may be translated as
"(x x+1)".

Fixes: 6048a6a3e8d6 ("ALSA: pcm: Fix snd_interval_refine first/last with open min/max")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/pcm_params.h