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

Commit 2479acce authored by Guodong Hu's avatar Guodong Hu Committed by Gerrit - the friendly Code Review server
Browse files

audiodlkm: modify audiodlkm to parse amixer command correctly



0xFFFFFFFF will be parsed as -1.
But as the fourth parameter of SOC_SINGLE_MULTI_EXT(), it denotes 'xmax'
and should be larger than the sixth parameter.
0x7FFFFFFF works fine in this function.

Change-Id: Ie20437f5e1993dac337f52026343383a98db7f5e
Signed-off-by: default avatarGuodong Hu <guodhu@codeaurora.org>
parent 0965ec58
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -20773,7 +20773,7 @@ static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
static const struct snd_kcontrol_new app_type_cfg_controls[] = {
	SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
	0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
	0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
	msm_routing_put_app_type_cfg_control),
	SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
	0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)