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:Xiaojun Sang <xsang@codeaurora.org> Signed-off-by:
Banajit Goswami <bgoswami@codeaurora.org> Signed-off-by:
Meng Wang <mwang@codeaurora.org>
Loading
Please register or sign in to comment