Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 819633ef authored by Xiaojun Sang's avatar Xiaojun Sang Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: sound: soc: fix incorrect max value



The max value stands for maximum number of levels in SX control.
The value is adjusted inappropriately, which causes inconsistency
between max and min value. While calculating the max number of levels,
the code assumes negative value of mc->min. Positive mc->min leads
to incorrect number of levels.
This fix covers the risk.

CRs-Fixed: 1053735
Change-Id: I71bd8f11ff9faff9252129d84c1a80845fc2fe2a
Signed-off-by: default avatarXiaojun Sang <xsang@codeaurora.org>
Signed-off-by: default avatarBanajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent da121428
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment