]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:18:51 +0000 (09:18 +0100)
commit7852f54f08a0a7222235561fc57ccd83f1c358d4
tree76cf2621092c3716b5c2c598adf13c5a115dfdfd
parentcabb9539dc1741b2a5bf6077a4aac8156f07a1c8
ALSA: pcm: Fix interval evaluation with openmin/max

commit 5363857b916c1f48027e9b96ee8be8376bf20811 upstream.

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: ff2d6acdf6f1 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/sound/pcm_params.h