]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:49:26 +0000 (19:49 -0600)
commit7e55f76ad0564f6f2dc9c7786eedaf5248f12f82
treeb421d4376a7cc4c27ae5a34b1c42187a5f10f939
parent212ecebedfcc9d2345ed445dfc37cf45636d2cf4
ALSA: pcm: Fix snd_interval_refine first/last with open min/max

BugLink: https://bugs.launchpad.net/bugs/1836117
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/core/pcm_lib.c