]> www.infradead.org Git - users/dwmw2/linux.git/commit
ALSA: pcm: Fix snd_interval_refine first/last with open min/max
authorTimo Wischer <twischer@de.adit-jv.com>
Tue, 10 Jul 2018 15:28:45 +0000 (17:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:39:41 +0000 (08:39 +0200)
commitf7ee7f7b06180ddcabb46f6e557560692e7d9d2f
treef6cb0071581a130bb35203b93e18410934b9dcea
parent0fce3c91ba6827cca00d9d11b380aa5588685fd8
ALSA: pcm: Fix snd_interval_refine first/last with open min/max

[ Upstream commit ff2d6acdf6f13d9f8fdcd890844c6d7535ac1f10 ]

Without this commit the following intervals [x y), (x y) were be
replaced to (y-1 y) by snd_interval_refine_last(). This was also done
if y-1 is part of the previous interval.
With this changes it will be replaced with [y-1 y) in case of y-1 is
part of the previous interval. A similar behavior will be used for
snd_interval_refine_first().

This commit adapts the changes for alsa-lib of commit
9bb985c ("pcm: snd_interval_refine_first/last: exclude value only if
also excluded before")

Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/pcm_lib.c