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

Commit 4e7e4233 authored by Venkat Sudhir's avatar Venkat Sudhir Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: Fix error check in external EC



External EC feature is used in case of speaker
device where EC reference signal is fed from
external source. This change fixes a bug in
error check for External EC Kcontrol function.

Change-Id: I912a0c11ec61abba6031a295f7be63f94eacd999
Signed-off-by: default avatarVenkat Sudhir <vsudhir@codeaurora.org>
parent 1bf9d12e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1562,7 +1562,7 @@ static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
		msm_route_ext_ec_ref = AFE_PORT_INVALID;
		break;
	}
	if (voc_set_ext_ec_ref(msm_route_ext_ec_ref, state)) {
	if (!voc_set_ext_ec_ref(msm_route_ext_ec_ref, state)) {
		mutex_unlock(&routing_lock);
		snd_soc_dapm_mux_update_power(widget, kcontrol, mux, e);
	} else {