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

Commit e3ec3dfc authored by Deven Patel's avatar Deven Patel
Browse files

ASoC: mbhc: Add stub definition for mbhc deinit



Audio mbhc feature is not required for all the targets.
Add the stub version of wcd_mbhc_deinit to support target that
doesn't have CONFIG_SND_SOC_WCD_MBHC defined.

Change-Id: I0c312ac59ce689c8370f6c78e254e5713044572d
Signed-off-by: default avatarDeven Patel <cdevenp@codeaurora.org>
parent 58be1b1f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -476,6 +476,7 @@ int wcd_mbhc_init(struct wcd_mbhc *mbhc, struct snd_soc_codec *codec,
		      bool impedance_det_en);
int wcd_mbhc_get_impedance(struct wcd_mbhc *mbhc, uint32_t *zl,
			   uint32_t *zr);
void wcd_mbhc_deinit(struct wcd_mbhc *mbhc);
#else
static inline void wcd_mbhc_stop(struct wcd_mbhc *mbhc)
{
@@ -503,6 +504,9 @@ static inline int wcd_mbhc_get_impedance(struct wcd_mbhc *mbhc,
	*zr = 0;
	return -EINVAL;
}
static inline void wcd_mbhc_deinit(struct wcd_mbhc *mbhc)
{
}
#endif
void wcd_mbhc_deinit(struct wcd_mbhc *mbhc);

#endif /* __WCD_MBHC_V2_H__ */