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

Commit 5c967cd5 authored by Yeleswarapu Nagaradhesh's avatar Yeleswarapu Nagaradhesh Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: handle default event in micb_ctrl api



Add the invalid case handling which is missing in micb_ctrl api

CRs-Fixed: 980968
Change-Id: I47c1eaeda404966d6320b0d26f9a7f295a47ab6c
Signed-off-by: default avatarYeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
parent bfb07a5c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -639,6 +639,9 @@ static void msm8x16_wcd_mbhc_common_micb_ctrl(struct snd_soc_codec *codec,
		mask = 0x04;
		val = (enable ? 0x04 : 0x00);
		break;
	default:
		pr_err("%s: Invalid event received\n", __func__);
		return;
	};
	snd_soc_update_bits(codec, reg, mask, val);
}